问题
I have two apps using the same TinyMCE textarea configurations. However, while an input in 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?
回答1:
Make sure you are using the escape tag "safe". For example, {{value|safe}}
to don't show the HTML code from TinyMCE safe.
来源:https://stackoverflow.com/questions/2889080/why-does-tinymce-in-django-admin-output-html-tags