Ejemplo n.º 1
0
def build_html(html):
    html = markdown(html)
    if current_app.config["HTML_SANITIZATION"] is True:
        html = sanitize_html(html)
    return html
Ejemplo n.º 2
0
def build_html(html):
    html = markdown(html)
    html = sanitize_html(html)
    return html
Ejemplo n.º 3
0
def build_markdown(md, sanitize=False):
    html = markdown(md)
    html = format_variables(html)
    if current_app.config["HTML_SANITIZATION"] is True or sanitize is True:
        html = sanitize_html(html)
    return html