goro
0
Q:

regex remove all html tags except br python

def cleanhtml(raw_html):
    cleanr = re.compile(r'<(?!br).*?>')
    cleantext = cleanr.sub('', raw_html)
    return cleantext
0

New to Communities?

Join the community