from django.utils.safestring import mark_safea = mark_safe("test")
转:https://www.cnblogs.com/icemonkey/p/10537753.html