Skip to content

Commit e4993a1

Browse files
added ul, ol and li tags to xss whitlelist
1 parent cc8489b commit e4993a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/hooks/xss.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const _ = require('lodash');
33

44
function clean (dirty, hook) {
55
return sanitizeHtml(dirty, {
6-
allowedTags: ['iframe', 'img', 'p', 'br', 'b', 'i', 'em', 'strong', 'a', 'pre'],
6+
allowedTags: ['iframe', 'img', 'p', 'br', 'b', 'i', 'em', 'strong', 'a', 'pre', 'ul', 'li', 'ol'],
77
allowedAttributes: {
88
a: ['href', 'data-*'],
99
img: [ 'src' ],

0 commit comments

Comments
 (0)