浏览代码

fix: html sanitizer - whitelist start prop for ol tag

NGPixel 5 年之前
父节点
当前提交
17f833509f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      server/modules/rendering/html-security/renderer.js

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

@@ -27,7 +27,7 @@ module.exports = {
           label: ['class', 'id', 'for'],
           label: ['class', 'id', 'for'],
           li: ['class', 'style'],
           li: ['class', 'style'],
           mark: ['class', 'style'],
           mark: ['class', 'style'],
-          ol: ['class', 'style'],
+          ol: ['class', 'style', 'start'],
           p: ['class', 'style'],
           p: ['class', 'style'],
           path: ['d', 'style'],
           path: ['d', 'style'],
           pre: ['class', 'style'],
           pre: ['class', 'style'],