diff options
Diffstat (limited to 'libbe/command/html.py')
-rw-r--r-- | libbe/command/html.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/libbe/command/html.py b/libbe/command/html.py index ebf5034..fbbdf97 100644 --- a/libbe/command/html.py +++ b/libbe/command/html.py @@ -368,14 +368,7 @@ class HTMLGen (object): def _escape(self, string): if string == None: return '' - chars = [] - for char in string: - codepoint = ord(char) - if codepoint in htmlentitydefs.codepoint2name: - char = '&%s;' % htmlentitydefs.codepoint2name[codepoint] - #else: xml.sax.saxutils.escape(char) - chars.append(char) - return ''.join(chars) + return xml.sax.saxutils.escape(char) def _load_user_templates(self): for filename,attr in [('style.css','css_file'), |