diff --git a/app/assets/javascripts/pretty-text/white-lister.js.es6 b/app/assets/javascripts/pretty-text/white-lister.js.es6 index cac079bf6..090e0dea2 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 6b0d2fd2e..99e9977df 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() {