Parcourir la source

fix: html sanitizer - whitelist i tag

NGPixel il y a 5 ans
Parent
commit
2ff3abe0d8
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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'],