Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
bauh / usr / lib / python3.11 / dist-packages / bauh / commons / html.py
Size: Mime:
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)


def link(url: str) -> str:
    return '<a href="{}">{}</a>'.format(url, url)