소스 검색

fix: html sanitizer - whitelist i tag

NGPixel 5 년 전
부모
커밋
2ff3abe0d8
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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'],