From 4ef148eaec8681a4b8b4f8b3dc0939e98be79562 Mon Sep 17 00:00:00 2001 From: Aviral Dasgupta Date: Sat, 2 Apr 2016 22:15:29 +0530 Subject: [PATCH] whitelist tag (fixes vector-im/vector-web#1339) --- src/HtmlUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HtmlUtils.js b/src/HtmlUtils.js index 82aea0bb76..dbcb59a20a 100644 --- a/src/HtmlUtils.js +++ b/src/HtmlUtils.js @@ -27,7 +27,7 @@ var sanitizeHtmlParams = { 'del', // for markdown // deliberately no h1/h2 to stop people shouting. 'h3', 'h4', 'h5', 'h6', 'blockquote', 'p', 'a', 'ul', 'ol', - 'nl', 'li', 'b', 'i', 'strong', 'em', 'strike', 'code', 'hr', 'br', 'div', + 'nl', 'li', 'b', 'i', 'u', 'strong', 'em', 'strike', 'code', 'hr', 'br', 'div', 'table', 'thead', 'caption', 'tbody', 'tr', 'th', 'td', 'pre' ], allowedAttributes: {