def safe_html_format(template, **kwargs):
    """
    Function that safely HTML escapes strings before safely formatting it into a HTML template
    """
    for k, v in kwargs.items():
        kwargs[k] = escape_silent(v)
    return safe_format(template, **kwargs)

    Function that safely HTML escapes strings before safely formatting it into a HTML template
    
CTFd/utils/formatters/__init__.py