Merge pull request #2676 from thornbill/fix-displaymessage-xss
This commit is contained in:
commit
70b41ff005
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ export default function (options) {
|
|||
|
||||
const elem = document.createElement('div');
|
||||
elem.classList.add('toast');
|
||||
elem.innerHTML = options.text;
|
||||
elem.textContent = options.text;
|
||||
|
||||
document.body.appendChild(elem);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue