Why is TinyMCE in Django admin displaying HTML tags?

I have two applications using the same TinyMCE textarea configuration. However, although entering the application does display the text correctly, the same input in another application does not display the text correctly - it issues <p> <li> tags, etc.

I have exactly the same Django source code for these two different applications. As I mentioned above, two applications use the same TinyMCE text area. How could this happen?

+4
source share
1 answer

Make sure you use the "safe" escape tag. For example, {{value|safe}} do not display HTML code from TinyMCE safe .

+11
source

Source: https://habr.com/ru/post/1310614/


All Articles