Django tinymce博文不要格式化HTML

时间:2016-03-24 00:55:37

标签: html django tinymce

管理面板中的tinymce工作正常,但当我去看帖子时,我看到了标签。例如

<p style="text-align: right;">asdasdasdasdasdddasdasdasd</p>
<p style="text-align: center;">asdasdadasd</p>
<li>asdasda</li>
<li>sd</li>
<li>asd</li>
<li>asdaa</li>
<li>adasda</li>
<li style="text-align: right;">a</li>
<li style="text-align: right;">asdas</li>
<li style="text-align: right;"></li>
</ol>


enter code here

1 个答案:

答案 0 :(得分:0)

您需要将变量标记为安全或添加autoescape。另请阅读how to ask a question here