在页面中正常显示包含html标记的内容--django

  1. {% autoescape off %}     #关闭整段代码的自动转义
  2.  
  3.      {{ htmlContent }}
  4.  
  5. {% endautoescape %} 

posted on 2017-04-13 14:48  zhangxiaolan  阅读(194)  评论(0)    收藏  举报