From b951713f7f22c25b14470a56faf8e895597aa791 Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Thu, 2 Mar 2017 11:39:40 +0000 Subject: [PATCH] Remove custom attribs as consumed --- src/HtmlUtils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/HtmlUtils.js b/src/HtmlUtils.js index 03be6d35a0..dc167ce5c7 100644 --- a/src/HtmlUtils.js +++ b/src/HtmlUtils.js @@ -163,6 +163,7 @@ var sanitizeHtmlParams = { /#[0-9a-fA-F]{6}/.test(customAttributeValue) ) { style += cssAttributeKey + ":" + customAttributeValue + ";"; + delete attribs[customAttributeKey]; } });