Django: tinymce HTML format

Viewed 71

I just installed django-tinymce however when I display the content I'm getting HTML format. How can I fix this?

Something <p>Some <strong>random </strong>text 123 123 123 <strong><br /></strong></p> admin 
1 Answers

Use safe filter. For example:

{{ your_html|safe }}

By default Django template engine escapes HTML to prevent XSS attacks. By using this filter you say the HTML is safe and can be rendered normally.

Related