Skip to content

Commit 2b2fd1b

Browse files
committed
[Yash] Fix anchor tag allowed attributes in InputSanitizer
1 parent e900b62 commit 2b2fd1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/inputSanitizer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const InputSanitizer = function () {
77
var relaxedOptions = {
88
allowedTags: ['b', 'i', 'em', 'strong', 'a', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'li', 'ul', 'br', 'p', 'u'],
99
allowedAttributes: {
10-
a: ['href'],
10+
a: ['href', 'target', 'rel'],
1111
},
1212
}
1313

0 commit comments

Comments
 (0)