Skip to content

Commit

Permalink
[Yash] Fix anchor tag allowed attributes in InputSanitizer
Browse files Browse the repository at this point in the history
  • Loading branch information
yashanandan committed May 2, 2024
1 parent e900b62 commit 2b2fd1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/inputSanitizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const InputSanitizer = function () {
var relaxedOptions = {
allowedTags: ['b', 'i', 'em', 'strong', 'a', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'li', 'ul', 'br', 'p', 'u'],
allowedAttributes: {
a: ['href'],
a: ['href', 'target', 'rel'],
},
}

Expand Down

0 comments on commit 2b2fd1b

Please sign in to comment.