【问题标题】:Emit raw html in ASP page?在 ASP 页面中发出原始 html?
【发布时间】:2011-10-27 23:44:42
【问题描述】:

这非常令人恼火。我只想简单地插入原始 html。我不能使用文字控制,因为没有忽略引号字符。我不想使用脚本元素,因为我将它添加到 ascx 文件中。我只想要原始的html输出。这个没有运营商吗?

【问题讨论】:

    标签: html asp-classic templating


    【解决方案1】:

    我完全误解了你,但是:

    在经典 ASP 中是:

    <%=("<div style=""color:red;"">html</div>")%>
    

    输出:

    <div style="color:red;">html</div>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-06-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-10-17
      相关资源
      最近更新 更多