Why does TinyMCE in Django admin output HTML tags?
I have two apps using the same TinyMCE textarea configurations. However, while an input i开发者_StackOverflow社区n an app does output the text properly, the same input in another app does not output the text properly -it outputs the <p> <li>
tags, etc.
I have exactly the same Django source code for these two different apps. As I mentioned above, two apps using the same TinyMCE textarea. How come this could happen?
Make sure you are using the template filter safe
, like this {{ value|safe }}
so it doesn't show the HTML code from TinyMCE.
More info safe:
精彩评论