From 832a69ef64b107b6b39e55947348cf53806cca29 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Wed, 31 May 2006 20:24:18 +0000 Subject: add TODOs git-svn-id: http://arthurdejong.org/svn/webcheck/webcheck@282 86f53f14-5ff3-0310-afe5-9b438ce3f40c --- parsers/html.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/parsers/html.py b/parsers/html.py index 7594e0b..74d5af6 100644 --- a/parsers/html.py +++ b/parsers/html.py @@ -271,11 +271,13 @@ class _MyHTMLParser(HTMLParser.HTMLParser): """Handle character references (e.g. A) by passing the data to handle_data().""" self.handle_data('&#'+name+';') + # TODO: do not pass ; if plain text does not contain it? def handle_entityref(self, name): """Handle entity references (e.g. é) by passing the data to handle_data().""" self.handle_data('&'+name+';') + # TODO: do not pass ; if plain text does not contain it? def handle_pi(self, data): """Hanlde xml declaration.""" -- cgit v1.2.3