def html_result(html: str,
                extraheaders: TYPE_WSGI_RESPONSE_HEADERS = None) \
        -> WSGI_TUPLE_TYPE:
    """
    Returns ``(contenttype, extraheaders, data)`` tuple for UTF-8 HTML.
    """
    extraheaders = extraheaders or []
    return 'text/html; charset=utf-8', extraheaders, html.encode("utf-8")
def html_result ( html : str , extraheaders : TYPE_WSGI_RESPONSE_HEADERS = None ) -> WSGI_TUPLE_TYPE : extraheaders = extraheaders or [ ] return 'text/html; charset=utf-8' , extraheaders , html . encode ( "utf-8" )
Returns ``(contenttype, extraheaders, data)`` tuple for UTF-8 HTML.