From a288a2b91fe9a7167b341debbf496e58ffd6f780 Mon Sep 17 00:00:00 2001 From: Gerald Britton Date: Fri, 18 Feb 2011 15:10:07 +0000 Subject: [PATCH] Use escape function from xml.sax.saxutils instead of built-in svn: r16664 --- src/plugins/webreport/NarrativeWeb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py index 765c9e401..9e209413b 100644 --- a/src/plugins/webreport/NarrativeWeb.py +++ b/src/plugins/webreport/NarrativeWeb.py @@ -210,7 +210,8 @@ _html_replacement = { # This command then defines the 'html_escape' option for escaping # special characters for presentation in HTML based on the above list. -def html_escape(text): +from xml.sax.saxutils import escape as html_escape +def _html_escape(text): """Convert the text and replace some characters with a &# variant.""" # First single characters, no quotes