CKeditor rich text editor displaying html tags in browser

后端 未结 3 2063
小蘑菇
小蘑菇 2021-01-25 15:28

I\'ve just installed CKeditor rich text WYSIWYG editor on a site I\'m building and it seems to be working ok except for the fact that it inserts text into my mysql database as e

3条回答
  •  故里飘歌
    2021-01-25 15:54

    Modern templating languages tend to autoescape html input. For example, in DTL it would be displayed correctly in the template by simply using {{ object.field_name|safe }} This is a desired action, since user input is considered untrusted and may be considered malicious.

提交回复
热议问题