Ver Fonte

fix: html sanitizer - whitelist i tag

NGPixel há 5 anos atrás
pai
commit
2ff3abe0d8
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      server/modules/rendering/html-security/renderer.js

+ 1 - 0
server/modules/rendering/html-security/renderer.js

@@ -20,6 +20,7 @@ module.exports = {
           h4: ['class', 'id', 'style'],
           h5: ['class', 'id', 'style'],
           h6: ['class', 'id', 'style'],
+          i: ['class', 'style'],
           img: ['alt', 'class', 'draggable', 'height', 'src', 'style', 'width'],
           input: ['class', 'disabled', 'type', 'checked', 'id'],
           kbd: ['class'],