1.(相比来讲)from django.utils.safestring import mark_safe content=mark_safe(content) 2.safe(加在前台) 3. {% autoescape off %} <h3>{{ row.content }}</h3> {% endautoescape %}django