mirror of
https://github.com/logos-co/open-law.git
synced 2025-01-09 14:25:58 +00:00
10 lines
193 B
Python
10 lines
193 B
Python
import re
|
|
|
|
# as per recommendation from @freylis, compile once only
|
|
CLEANR = re.compile("<.*?>")
|
|
|
|
|
|
def clean_html(raw_html):
|
|
clean_text = re.sub(CLEANR, "", raw_html)
|
|
return clean_text
|