summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorWu Cheng-Han2016-10-29 23:43:58 +0800
committerWu Cheng-Han2016-10-29 23:43:58 +0800
commitba2bfa2188afe7518eb394af02499069f6d997fb (patch)
tree366416547f3ba492d58f558c1c9e83aed5501deb /public
parent70d2fa388ec2b035102c8a2218cdaab69f6babdb (diff)
Update to support summary tag
Diffstat (limited to '')
-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 77778795..559530b0 100644
--- a/public/js/render.js
+++ b/public/js/render.js
@@ -14,6 +14,8 @@ whiteList['style'] = [];
whiteList['kbd'] = [];
// allow ifram tag with some safe attributes
whiteList['iframe'] = ['allowfullscreen', 'name', 'referrerpolicy', 'sandbox', 'src', 'srcdoc', 'width', 'height'];
+// allow summary tag
+whiteList['summary'] = [];
var filterXSSOptions = {
allowCommentTag: true,