dquot -> quot!

This commit is contained in:
Jean-Francois Dockes 2014-10-29 11:57:18 +01:00
parent 293468bd58
commit 86bc0e9104

View File

@ -30,6 +30,8 @@ class RclExecM:
if doexit:
sys.exit(exitvalue)
# Note: tried replacing this with a multiple replacer according to
# http://stackoverflow.com/a/15221068, which was **10 times** slower
def htmlescape(self, txt):
# This must stay first (it somehow had managed to skip after
# the next line, with rather interesting results)
@ -37,7 +39,7 @@ class RclExecM:
txt = txt.replace("<", "&lt;")
txt = txt.replace(">", "&gt;")
txt = txt.replace('"', "&dquot;")
txt = txt.replace('"', "&quot;")
return txt
# Our worker sometimes knows the mime types of the data it sends