[FIX] tools html_sanitize: While editing mass mailing or other html fields, font size, foreground color/background color are not saved after changing them.
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user