From c5ebd4dc4e0df268d9ae77574b1e504473decc50 Mon Sep 17 00:00:00 2001 From: Romain Derie Date: Mon, 16 Jan 2023 18:41:59 +0000 Subject: [PATCH] [REM] core: remove mako support in html sanitize X-original-commit: 8f0f36a2199e738ed5a7905e4c76c5720347dbb5 Part-of: odoo/odoo#110903 --- odoo/tools/mail.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/odoo/tools/mail.py b/odoo/tools/mail.py index b5477caa3d3..26b43998e01 100644 --- a/odoo/tools/mail.py +++ b/odoo/tools/mail.py @@ -188,10 +188,6 @@ def html_sanitize(src, silent=True, sanitize_tags=True, sanitize_attributes=Fals logger = logging.getLogger(__name__ + '.html_sanitize') - # html encode mako tags <% ... %> to decode them later and keep them alive, otherwise they are stripped by the cleaner - src = src.replace(u'<%', misc.html_escape(u'<%')) - src = src.replace(u'%>', misc.html_escape(u'%>')) - kwargs = { 'page_structure': True, 'style': strip_style, # True = remove style tags/attrs