Browse Source

verify Added entity additions

Mike Smith 11 years ago
parent
commit
44ff01ef7f
1 changed files with 3 additions and 0 deletions
  1. 3 0
      toolset/benchmark/fortune_html_parser.py

+ 3 - 0
toolset/benchmark/fortune_html_parser.py

@@ -9,6 +9,9 @@ class FortuneHTMLParser(HTMLParser):
   def handle_decl(self, decl):
     self.body.append("<!{d}>".format(d=decl))
 
+  def handle_charref(self, name):
+    self.body.append("&{n};".format(n=name))
+
   def handle_starttag(self, tag, attrs):
     self.body.append("<{t}>".format(t=tag))