mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-08 05:04:15 +02:00
commons
This commit is contained in:
7
bauh/util/html.py
Normal file
7
bauh/util/html.py
Normal file
@@ -0,0 +1,7 @@
|
||||
import re
|
||||
|
||||
HTML_RE = re.compile(r'<[^>]+>')
|
||||
|
||||
|
||||
def strip_html(string: str):
|
||||
return HTML_RE.sub('', string)
|
||||
Reference in New Issue
Block a user