Пример #1
0
def strip_html_entities(text):
	text = text if text else ""
	text = text.replace("<br>", "\n")
	text = text.replace("&amp;", "&")
	text = text.replace("&nbsp;", " ")
	return mark_safe(text)
Пример #2
0
def strip_html_entities(text):
    text = text if text else ""
    text = text.replace("<br>", "\n")
    text = text.replace("&amp;", "&")
    text = text.replace("&nbsp;", " ")
    return mark_safe(text)