Browse Source

fix: add missing html tags to whitelist

pull/1480/head
NGPixel 4 years ago
parent
commit
09554c8528
1 changed files with 4 additions and 0 deletions
  1. 4
      server/modules/rendering/html-security/renderer.js

4
server/modules/rendering/html-security/renderer.js

@ -9,8 +9,10 @@ module.exports = {
a: ['class', 'id', 'href', 'style', 'target', 'title'],
blockquote: ['class', 'id', 'style'],
code: ['class', 'style'],
details: ['class', 'style'],
div: ['class', 'id', 'style'],
em: ['class', 'style'],
figure: ['class', 'style'],
h1: ['class', 'id', 'style'],
h2: ['class', 'id', 'style'],
h3: ['class', 'id', 'style'],
@ -25,8 +27,10 @@ module.exports = {
p: ['class', 'style'],
path: ['d', 'style'],
pre: ['class', 'style'],
section: ['class', 'style'],
span: ['class', 'style'],
strong: ['class', 'style'],
summary: ['class', 'style'],
svg: ['width', 'height', 'viewBox', 'preserveAspectRatio', 'style'],
table: ['border', 'class', 'id', 'style', 'width'],
tbody: ['class', 'style'],

Loading…
Cancel
Save