Skip to content
This repository was archived by the owner on Jun 27, 2019. It is now read-only.

Commit 16f451c

Browse files
committed
add linebreak to editor
1 parent 342e24f commit 16f451c

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
@@ -25,7 +25,7 @@ function clean (dirty) {
2525
allowedTags: ['iframe', 'img', 'p', 'br', 'b', 'i', 'em', 'strong', 'a', 'pre', 'ul', 'li', 'ol', 's', 'strike', 'span', 'blockquote'],
2626
allowedAttributes: {
2727
a: ['href', 'class', 'target', 'data-*' , 'contenteditable'],
28-
span: ['contenteditable'],
28+
span: ['contenteditable', 'class', 'data-*'],
2929
img: ['src'],
3030
iframe: ['src', 'class', 'frameborder', 'allowfullscreen']
3131
},

0 commit comments

Comments
 (0)