def decode_html(html_string):
    converted = UnicodeDammit(html_string, isHTML=True)
    if (not converted.unicode):
        raise UnicodeDecodeError('Failed to detect encoding, tried [%s]', ', '.join(converted.triedEncodings))
    return converted.unicode
def decode_html(html_string):
    converted = UnicodeDammit(html_string, isHTML=True)
    if (not converted.unicode):
        raise UnicodeDecodeError('Failed to detect encoding, tried [%s]', ', '.join(converted.triedEncodings))
    return converted.unicode