mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 04:44:15 +02:00
gem selector sketch
This commit is contained in:
11
bauh/commons/html.py
Normal file
11
bauh/commons/html.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import re
|
||||
|
||||
HTML_RE = re.compile(r'<[^>]+>')
|
||||
|
||||
|
||||
def strip_html(string: str):
|
||||
return HTML_RE.sub('', string)
|
||||
|
||||
|
||||
def bold(text: str) -> str:
|
||||
return '<span style="font-weight: bold">{}</span>'.format(text)
|
||||
Reference in New Issue
Block a user