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