& is an entity reference. Either pass "convert_charrefs=True" to the constructor, or implement a method "def handle_entityref(self, data)" to receive them as events. https://docs.python.org/3.4/library/html.parser.html
History
Date
User
Action
Args
2022-04-11 14:58:12
admin
set
github: 67626
2015-02-10 22:31:10
amaury.forgeotdarc
set
status: open -> closednosy: + amaury.forgeotdarcmessages: + resolution: not a bug
2015-02-10 22:02:38
pyed
set
title: HTMLParser don't know how to deal with 'ampersand' -> HTMLParser doesn't know how to deal with 'ampersand'