gem selector sketch

This commit is contained in:
Vinicius Moreira
2019-09-11 16:00:02 -03:00
parent 696b6169ac
commit ba5e1da11b
79 changed files with 4117 additions and 112 deletions

11
bauh/commons/html.py Normal file
View 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)