summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorWu Cheng-Han2017-02-17 21:56:35 +0800
committerWu Cheng-Han2017-02-17 21:56:35 +0800
commit1ca39d9c8e47ae2ce5a524504beb0aaed221a97c (patch)
tree5c82c7428065a4cc8cabae4e356f5e7a67edb6e0 /public
parent91949be65148477b21dbb1fe45e2062dbea0a5e8 (diff)
Update to allow li tag specify value number
Diffstat (limited to 'public')
-rw-r--r--public/js/render.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/public/js/render.js b/public/js/render.js
index a61fc8fb..5d6d0aa2 100644
--- a/public/js/render.js
+++ b/public/js/render.js
@@ -9,6 +9,8 @@ var dataUriRegex = /^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base
var whiteList = filterXSS.whiteList;
// allow ol specify start number
whiteList['ol'] = ['start'];
+// allow li specify value number
+whiteList['li'] = ['value'];
// allow style tag
whiteList['style'] = [];
// allow kbd tag