diff options
-rw-r--r-- | becommands/html.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/becommands/html.py b/becommands/html.py index 908c714..da65a97 100644 --- a/becommands/html.py +++ b/becommands/html.py @@ -107,12 +107,7 @@ def complete(options, args, parser): def escape(string): if string == None: return "" - chars = [] - for char in xml.sax.saxutils.escape(string): - codepoint = ord(char) - if codepoint in htmlentitydefs.codepoint2name: - char = "&%s;" % htmlentitydefs.codepoint2name[codepoint] - chars.append(char) + chars = xml.sax.saxutils.escape(string) return "".join(chars) class BEHTMLGen(): |