示例图:
本来是加粗的,结果显示了其html代码
解决方案:
富文本页面显示 html内容,要想不显示 html就要将要显示的内容用{% autoescape off %}包括起来
用法:
{% autoescape off %}
要显示的内容
{% endautoescape %}
效果:
示例图:
本来是加粗的,结果显示了其html代码
解决方案:
富文本页面显示 html内容,要想不显示 html就要将要显示的内容用{% autoescape off %}包括起来
用法:
{% autoescape off %}
要显示的内容
{% endautoescape %}
效果: