[issue13633] Handling of hex character references in HTMLParser.handle_charref

2013-11-20 Thread Ezio Melotti
Ezio Melotti added the comment: Here is a patch. It might be also be a good idea to add warning when the option is not explicitly set to False, and change the default to True in 3.5/3.6. -- keywords: +patch nosy: +serhiy.storchaka stage: test needed -> patch review Added file: http://bu

[issue13633] Handling of hex character references in HTMLParser.handle_charref

2013-11-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- dependencies: +expose html.parser.unescape ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue13633] Handling of hex character references in HTMLParser.handle_charref

2013-11-16 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +eli.bendersky, r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue13633] Handling of hex character references in HTMLParser.handle_charref

2013-05-01 Thread Ezio Melotti
Ezio Melotti added the comment: Another option is to add a new "convert_entities" option that, when True, automatically converts character references and doesn't call handle_charref and handle_entityref. (See also #17802.) -- ___ Python tracker

[issue13633] Handling of hex character references in HTMLParser.handle_charref

2012-10-05 Thread Ezio Melotti
Changes by Ezio Melotti : -- versions: +Python 3.4 -Python 2.7, Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mai

[issue13633] Handling of hex character references in HTMLParser.handle_charref

2012-02-22 Thread Ezio Melotti
Ezio Melotti added the comment: This behavior is now documented, but the situation could still be improved. Adding a new method that receives the converted entity seems a good way to handle this. The parser can call both, and users can pick either one. One problem with the current methods (

[issue13633] Handling of hex character references in HTMLParser.handle_charref

2011-12-18 Thread Ezio Melotti
New submission from Ezio Melotti : The doc for handle_charref and handle_entityref say: """ HTMLParser.handle_charref(name) This method is called to process a character reference of the form "&#ref;". It is intended to be overridden by a derived class; the base class implementation does not