diff --git a/app/assets/javascripts/pretty-text/white-lister.js.es6 b/app/assets/javascripts/pretty-text/white-lister.js.es6 index cac079bf6a2..090e0dea252 100644 --- a/app/assets/javascripts/pretty-text/white-lister.js.es6 +++ b/app/assets/javascripts/pretty-text/white-lister.js.es6 @@ -149,4 +149,5 @@ whiteListFeature('default', [ 'iframe[frameborder]', 'iframe[marginheight]', 'iframe[marginwidth]', + 'kbd' ]); diff --git a/test/javascripts/lib/sanitizer-test.js.es6 b/test/javascripts/lib/sanitizer-test.js.es6 index 6b0d2fd2e2e..99e9977df09 100644 --- a/test/javascripts/lib/sanitizer-test.js.es6 +++ b/test/javascripts/lib/sanitizer-test.js.es6 @@ -45,6 +45,8 @@ test("sanitize", function() { cooked("a", "

a

", "it sanitizes spans"); cooked("a", "

a

", "it sanitizes spans"); cooked("a", "

a

", "it sanitizes spans"); + + cooked("Ctrl+C", "

Ctrl+C

"); }); test("urlAllowed", function() {