aboutsummaryrefslogtreecommitdiff
path: root/utils.py
blob: aa0f4ed1de5e2d6f41076ea6953e616a8b1825d7 (plain)
1
2
3
4
5
6
7
8
9
import re
import html

CLEANR = re.compile('<.*?>')

def sanitize_html(raw_html):
	cleantext = re.sub(CLEANR, '', raw_html)
	return html.unescape(cleantext)