Django如何把数据库里的html格式输出到前端

只需在HTML页面中加入{% autoescape off %}即可!

{% autoescape off %}

需要显示的数据

(% endautoescap %}

原文地址:https://www.cnblogs.com/caowenhao/p/7990058.html