When I try to display the JSON data stored in my database directly in HTML, I notice some strange characters that seem to be encoded. Here is a snippet from the HTML file:
'{"web_rendition":{"@xmlns":"","content":
How can I encode this data properly or parse it into a JSON object?
Code snippet from the view class:
content = Cond.objects.get(pk=pk).con_con.con_chron
context['new_content'] = content
return context
This is how I use the data in my template:
<script>
content = "{{new_content}}";
</script>