From 86bc0e910459322fcefffc80bd71793d173dc1bb Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Wed, 29 Oct 2014 11:57:18 +0100 Subject: [PATCH] dquot -> quot! --- src/filters/rclexecm.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/filters/rclexecm.py b/src/filters/rclexecm.py index 9c5d07f2..eadf19cd 100644 --- a/src/filters/rclexecm.py +++ b/src/filters/rclexecm.py @@ -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("<", "<") txt = txt.replace(">", ">") - txt = txt.replace('"', "&dquot;") + txt = txt.replace('"', """) return txt # Our worker sometimes knows the mime types of the data it sends