Update to support summary tag

This commit is contained in:
Wu Cheng-Han 2016-10-29 23:43:58 +08:00
parent 70d2fa388e
commit ba2bfa2188

View file

@ -14,6 +14,8 @@ whiteList['style'] = [];
whiteList['kbd'] = []; whiteList['kbd'] = [];
// allow ifram tag with some safe attributes // allow ifram tag with some safe attributes
whiteList['iframe'] = ['allowfullscreen', 'name', 'referrerpolicy', 'sandbox', 'src', 'srcdoc', 'width', 'height']; whiteList['iframe'] = ['allowfullscreen', 'name', 'referrerpolicy', 'sandbox', 'src', 'srcdoc', 'width', 'height'];
// allow summary tag
whiteList['summary'] = [];
var filterXSSOptions = { var filterXSSOptions = {
allowCommentTag: true, allowCommentTag: true,