开发者

Why does TinyMCE in Django admin output HTML tags?

开发者 https://www.devze.com 2022-12-31 21:35 出处:网络
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 t

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:

0

精彩评论

暂无评论...
验证码 换一张
取 消