[issue23438] HTMLParser doesn't know how to deal with 'ampersand'

2015-02-10 Thread pyed

Changes by pyed iabdule...@gmail.com:


--
title: HTMLParser don't know how to deal with 'ampersand' - HTMLParser doesn't 
know how to deal with 'ampersand'

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23438
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23438] HTMLParser doesn't know how to deal with 'ampersand'

2015-02-10 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc added the comment:

amp; 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

--
nosy: +amaury.forgeotdarc
resolution:  - not a bug
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23438
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com