views:

47

answers:

1

When the html is returned from django views

   <script>
   //The following is in the ready function
   $("#data").html("{{dict.html}}");
   </script>
    <div id="data" name="data" style="display:block;"></div>

The following html is displayed on the screen.How to embed this html into data div

     <ul ><li ><a ><ins> </ins>Ses</a><ul ><li>
A: 

Try passing the safe filter

$('#data').html({{dict.html|safe}});
czarchaic