From f9d0bb9a5215669e7dbb2d1a3c26c14a723cd595 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 4 Mar 2016 11:02:25 +0100 Subject: [PATCH] misc: don't escape html if _sanitizeHTML is absent (#10194) --- wcs/qommon/form.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/wcs/qommon/form.py b/wcs/qommon/form.py index febd9c5..431ecba 100644 --- a/wcs/qommon/form.py +++ b/wcs/qommon/form.py @@ -1286,8 +1286,6 @@ class WysiwygTextWidget(TextWidget): if self.value: if _sanitizeHTML: self.value = _sanitizeHTML(self.value, get_request().charset, 'text/html') - else: - self.value = str(htmlescape(self.value)) if self.value.startswith('
'): self.value = self.value[6:] if self.value.endswith('
'): -- 2.7.0