aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/html.py
diff options
context:
space:
mode:
authorEric Kow <eric.kow@gmail.com>2010-02-05 14:30:21 +0000
committerEric Kow <eric.kow@gmail.com>2010-02-05 14:30:21 +0000
commit9a7fde0aec7f17617378c1a1c8c5e6db1bdfbef8 (patch)
tree87979a250fbd2eb1d782a7fae686109d8c3adefb /becommands/html.py
parentcf69a26e21aaa0a866415fe43f5ea9719d0f7947 (diff)
downloadbugseverywhere-9a7fde0aec7f17617378c1a1c8c5e6db1bdfbef8.tar.gz
Avoid double-escaping in 'be html'.
Diffstat (limited to 'becommands/html.py')
-rw-r--r--becommands/html.py7
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():