diff options
author | W. Trevor King <wking@drexel.edu> | 2010-02-09 10:27:03 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2010-02-09 10:27:03 -0500 |
commit | 50444209eee408dde7d240fdf59bfc9e82b714ce (patch) | |
tree | 85b00d90e7d12e02afaee6e165b29440f9db7ed2 | |
parent | 37d61e9ecd8768b25ba4aff3c657ccc56f086dd0 (diff) | |
parent | 9a7fde0aec7f17617378c1a1c8c5e6db1bdfbef8 (diff) | |
download | bugseverywhere-50444209eee408dde7d240fdf59bfc9e82b714ce.tar.gz |
Merged Eric Kow's HTML escaping patch
-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'), |