Skip to content

Commit

Permalink
fixes #989 - fix XSS
Browse files Browse the repository at this point in the history
  • Loading branch information
Yair Even Or authored and Yair Even Or committed Feb 17, 2022
1 parent 93f729c commit 198c045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tagify.js
Expand Up @@ -101,7 +101,7 @@ Tagify.prototype = {

_s.disabled = input.hasAttribute('disabled')
_s.readonly = _s.readonly || input.hasAttribute('readonly')
_s.placeholder = input.getAttribute('placeholder') || _s.placeholder || ""
_s.placeholder = escapeHTML(input.getAttribute('placeholder') || _s.placeholder || "")
_s.required = input.hasAttribute('required')

for( let name in _s.classNames )
Expand Down

0 comments on commit 198c045

Please sign in to comment.