On mer., 2013-11-20 at 21:57 +0200, Ezio Melotti wrote:
> Now I'm working on #13633 (Automatically convert character references
> in HTMLParser [1]), and I'm planning to add a convert_charrefs boolean
> flag to the constructors that, when set to True, will automatically
> convert charrefs (e.g. """, """) to the corresponding Unicode
> characters, and avoid calling the handle_charref/handle_entityref
> methods.

How about a separate StandardHTMLParser class that would have the right
handle_charref / handle_entityref implementations?
(you could also change other behaviours in that class if desired)

Regards

Antoine.


_______________________________________________
python-committers mailing list
python-committers@python.org
https://mail.python.org/mailman/listinfo/python-committers

Reply via email to