Files
bearhub/bauh/commons/html.py
Vinicius Moreira ba5e1da11b gem selector sketch
2019-09-11 16:00:02 -03:00

12 lines
208 B
Python

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)