New submission from Валентин Dreyk <[email protected]>:
import html
import xml.sax.saxutils as saxutils
print(saxutils.unescape("®hard")) # ®hard
print(html.unescape("®hard")) # ®hard
html.unescape() replace "®" 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 <[email protected]>
<https://bugs.python.org/issue40873>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com