html2text icon indicating copy to clipboard operation
html2text copied to clipboard

charref() maybe throw OverflowError: Python int too large to convert to C int

Open liujuncn opened this issue 1 year ago • 1 comments

in charref(): if name[0] in ["x", "X"]: c = int(name[1:], 16) else: c = int(name) if name like "xabcdeabcdeabcdeabcde" will cause chr(c) throw OverflowError.

liujuncn avatar Mar 08 '23 00:03 liujuncn