Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/72.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript CLEditor-如何将原始HTML显示为格式化标记?_Javascript_Jquery_Html_Ajax_Cleditor - Fatal编程技术网

Javascript CLEditor-如何将原始HTML显示为格式化标记?

Javascript CLEditor-如何将原始HTML显示为格式化标记?,javascript,jquery,html,ajax,cleditor,Javascript,Jquery,Html,Ajax,Cleditor,我在应用程序上使用了CLEditor,但在显示textarea的格式化内容时遇到了问题。我从服务器收到的响应与此类似: <span style="text-decoration: underline;">Number of customers:</span> <span style="font-weight: bold;">34</span><br> 客户数量:34 我想在页面上以格式化HTML的形式显示此代码段: 有没有办法在j

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

<span style="text-decoration: underline;">Number of customers:</span> <span style="font-weight: bold;">34</span><br>
客户数量:34
我想在页面上以格式化HTML的形式显示此代码段:


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

我不确定是否正确,但:

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