From 1d82bb16caf8eb84a23af6ac426f996fc77fb3ad Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Fri, 16 Jan 2015 14:21:01 +0100 Subject: [PATCH] [FIX] tools html_sanitize: While editing mass mailing or other html fields, font size, foreground color/background color are not saved after changing them. --- openerp/tools/mail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openerp/tools/mail.py b/openerp/tools/mail.py index e3e8f808399..63a8ce35e91 100644 --- a/openerp/tools/mail.py +++ b/openerp/tools/mail.py @@ -42,7 +42,7 @@ _logger = logging.getLogger(__name__) #---------------------------------------------------------- tags_to_kill = ["script", "head", "meta", "title", "link", "style", "frame", "iframe", "base", "object", "embed"] -tags_to_remove = ['html', 'body', 'font'] +tags_to_remove = ['html', 'body'] # allow new semantic HTML5 tags allowed_tags = clean.defs.tags | frozenset('article section header footer hgroup nav aside figure main'.split() + [etree.Comment])