[REM] core: remove mako support in html sanitize

X-original-commit: 8f0f36a2199e738ed5a7905e4c76c5720347dbb5
Part-of: odoo/odoo#110903
This commit is contained in:
Romain Derie
2023-01-25 05:06:02 +01:00
parent 8d3e917e31
commit c5ebd4dc4e
-4
View File
@@ -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