diff --git a/src/util/inputSanitizer.js b/src/util/inputSanitizer.js index 53281a924..16ba15e90 100644 --- a/src/util/inputSanitizer.js +++ b/src/util/inputSanitizer.js @@ -5,9 +5,29 @@ const _ = { const InputSanitizer = function () { var relaxedOptions = { - allowedTags: ['b', 'i', 'em', 'strong', 'a', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'li', 'ul', 'br', 'p', 'u'], + allowedTags: [ + 'b', + 'i', + 'em', + 'strong', + 'a', + 'h1', + 'h2', + 'h3', + 'h4', + 'h5', + 'h6', + 'li', + 'ul', + 'br', + 'p', + 'u', + 'code', + 'pre', + ], allowedAttributes: { a: ['href', 'target', 'rel'], + code: ['classes'], }, }