def clean(html, autoescape=None):
"""
????? ??? ???? ????????: striptags, linebreaksbr, typograf, safe
"""
text = strip_tags(str(html))
text = defaultfilters.linebreaksbr(text, autoescape=autoescape)
text = typograf(text)
return mark_safe(text)
评论列表
文章目录