Fixed python filter html escaping

This commit is contained in:
"Jean-Francois Dockes ext:(%22) 2012-04-03 16:46:16 +02:00
parent 3a21f2c78a
commit 5f9095b472

View File

@ -24,8 +24,11 @@ class RclExecM:
sys.exit(exitvalue)
def htmlescape(self, txt):
txt = txt.replace("<", "&lt;")
# This must stay first (it somehow had managed to skip after
# the next line, with rather interesting results)
txt = txt.replace("&", "&amp;")
txt = txt.replace("<", "&lt;")
txt = txt.replace('"', "&dquot;")
return txt