[IMP] mail,tools: clean tags to kill list in HTML sanitizer

Some tags are not necessary in the HTML template and we can remove them to
have a proper HTML output.

Task 2171753

closes odoo/odoo#51757

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
Stéphane Debauche
2020-05-25 07:28:19 +00:00
committed by Thibault Delavallée
parent a19684af95
commit 2244961314
+3 -1
View File
@@ -26,7 +26,9 @@ _logger = logging.getLogger(__name__)
# HTML Sanitizer
#----------------------------------------------------------
tags_to_kill = ["script", "head", "meta", "title", "link", "style", "frame", "iframe", "base", "object", "embed"]
tags_to_kill = ['base', 'embed', 'frame', 'head', 'iframe', 'link', 'meta',
'noscript', 'object', 'script', 'style', 'title']
tags_to_remove = ['html', 'body']
# allow new semantic HTML5 tags