Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2006-05-31 22:24:18 +0200
committerArthur de Jong <arthur@arthurdejong.org>2006-05-31 22:24:18 +0200
commit832a69ef64b107b6b39e55947348cf53806cca29 (patch)
treed953abb5140eff9a3ae31576506cc0a0141d6b8d
parentf93353e45d5755e8578183c644b6bd828d85cf7f (diff)
add TODOs
git-svn-id: http://arthurdejong.org/svn/webcheck/webcheck@282 86f53f14-5ff3-0310-afe5-9b438ce3f40c
-rw-r--r--parsers/html.py2
1 files changed, 2 insertions, 0 deletions
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. &#65;) 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. &eacute;) 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."""