[New-bugs-announce] [issue40873] Something wrong with html.unescape()

Валентин Dreyk report at bugs.python.org
Fri Jun 5 12:07:08 EDT 2020

New submission from Валентин Dreyk <dreyksmail at gmail.com>:

import html
import xml.sax.saxutils as saxutils

print(saxutils.unescape("&reghard"))  # &reghard
print(html.unescape("&reghard"))  # ®hard

html.unescape() replace "&reg" to "®" even without ";" at the end.

components: Library (Lib)
messages: 370765
nosy: Валентин Dreyk
priority: normal
severity: normal
status: open
title: Something wrong with html.unescape()
type: behavior
versions: Python 3.8

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list