Eld*_*ila 154
如果你想在python中去掉标签,你可以使用:
from django.utils.html import strip_tags
strip_tags(string_value)
Run Code Online (Sandbox Code Playgroud)
编辑:如果你使用strip_tags,你应该更新你的django.因为安全研究人员找到了绕过strip_tags的方法.更多信息:http://www.mehmetince.net/django-strip_tags-bypass-vulnerability-exploit/