From 9cb8d5d19e2c144a9c46f888f4241bcf7675be6a Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 29 Jul 2016 16:11:18 -0400 Subject: [PATCH] FIX: Whitelist the `big` tag --- app/assets/javascripts/pretty-text/white-lister.js.es6 | 1 + test/javascripts/lib/sanitizer-test.js.es6 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/pretty-text/white-lister.js.es6 b/app/assets/javascripts/pretty-text/white-lister.js.es6 index 0841d9a1217..c293b18135e 100644 --- a/app/assets/javascripts/pretty-text/white-lister.js.es6 +++ b/app/assets/javascripts/pretty-text/white-lister.js.es6 @@ -114,6 +114,7 @@ whiteListFeature('default', [ 'aside.quote', 'aside[data-*]', 'b', + 'big', 'blockquote', 'br', 'code', diff --git a/test/javascripts/lib/sanitizer-test.js.es6 b/test/javascripts/lib/sanitizer-test.js.es6 index bc67c5c3c27..dd3fd47323d 100644 --- a/test/javascripts/lib/sanitizer-test.js.es6 +++ b/test/javascripts/lib/sanitizer-test.js.es6 @@ -55,7 +55,7 @@ test("sanitize", function() { cooked(`1 + 1 is 3 2`, `

1 + 1 is 3 2

`); cooked(`JS`, `

JS

`); cooked(`
Forum
Software
`, `
Forum
Software
`); - cooked(`high low`, `

high low

`); + cooked(`high low HUGE`, `

high low HUGE

`); }); test("ids on headings", () => {