dquot -> quot!
This commit is contained in:
parent
293468bd58
commit
86bc0e9104
@ -30,6 +30,8 @@ class RclExecM:
|
|||||||
if doexit:
|
if doexit:
|
||||||
sys.exit(exitvalue)
|
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):
|
def htmlescape(self, txt):
|
||||||
# This must stay first (it somehow had managed to skip after
|
# This must stay first (it somehow had managed to skip after
|
||||||
# the next line, with rather interesting results)
|
# the next line, with rather interesting results)
|
||||||
@ -37,7 +39,7 @@ class RclExecM:
|
|||||||
|
|
||||||
txt = txt.replace("<", "<")
|
txt = txt.replace("<", "<")
|
||||||
txt = txt.replace(">", ">")
|
txt = txt.replace(">", ">")
|
||||||
txt = txt.replace('"', "&dquot;")
|
txt = txt.replace('"', """)
|
||||||
return txt
|
return txt
|
||||||
|
|
||||||
# Our worker sometimes knows the mime types of the data it sends
|
# Our worker sometimes knows the mime types of the data it sends
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user