【问题标题】:CLEditor - How to display raw HTML as formatted markup?CLEditor - 如何将原始 HTML 显示为格式化标记?
【发布时间】:2013-09-03 19:54:37
【问题描述】:

我在应用程序上使用 CLEditor,但在显示 textarea 的格式化内容时遇到问题。我从服务器收到的响应类似于:

<span style="text-decoration: underline;">Number of customers:</span> <span style="font-weight: bold;">34</span><br>

我想在页面上将此 sn-p 显示为格式化的 HTML:

有没有办法在 jQuery 中实现这一点?

【问题讨论】:

    标签: javascript jquery html ajax cleditor


    【解决方案1】:

    不确定我是否正确,但是:

    $('#somediv').html(response);
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-08-02
      • 1970-01-01
      • 1970-01-01
      • 2018-05-22
      • 1970-01-01
      • 1970-01-01
      • 2015-03-01
      • 1970-01-01
      相关资源
      最近更新 更多