def pformat_sql_html(sql):
    sql = escape(sql)
    sql = RE_SQL_NL.sub(u'<br>\n\\1', sql)
    sql = RE_SQL.sub(u'<strong>\\1</strong>', sql)
    return sql
Highlight common SQL words in a string.
dataset/ETHPy150Open edoburu/django-debugtools/debugtools/formatter.py/pformat_sql_html