Вопрос

I use CLEditor on an application and I'm facing a problem showing the formatted contents of the textarea. The response I receive from server looks similar to this:

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

I'd like to display this snippet on the page as formatted HTML:

enter image description here

Is there a way to accomplish this in jQuery?

Это было полезно?

Решение

Not sure if I get this right but :

$('#somediv').html(response);
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top