From f4278b61ea4ea8648116717e6d963f52d055c784 Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Thu, 2 Mar 2017 18:13:01 +0000 Subject: [PATCH] Update comment --- src/HtmlUtils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/HtmlUtils.js b/src/HtmlUtils.js index d3d70f5cd5..04be1154f2 100644 --- a/src/HtmlUtils.js +++ b/src/HtmlUtils.js @@ -139,7 +139,8 @@ var sanitizeHtmlParams = { return { tagName: tagName, attribs : attribs }; }, '*': function(tagName, attribs) { - // Delete any style previously assigned + // Delete any style previously assigned, style is an allowedTag for font and span + // because attributes are stripped after transforming delete attribs.style; // Sanitise and transform data-mx-color and data-mx-bg-color to their CSS