开发者

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:

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜