def parse_html(html_text, charset=None, log=None):
root = _parse_html(html_text, charset)
if root is None:
return None
_charset = root.originalEncoding
def parse_html(html_text, charset=None, log=None):
root = _parse_html(html_text, charset)
if root is None:
return None
_charset = root.originalEncoding