Skip to content

Commit

Permalink
refactor(demo-block): fix innerHTML vulnerability (#976)
Browse files Browse the repository at this point in the history
  • Loading branch information
wattachai-lseg authored Sep 27, 2023
1 parent 8d82a25 commit 5b86a2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/demo-block/src/demo-block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ themeLabel.style.top = '10px';
themeLabel.style.padding = '2px 4px';
themeLabel.style.fontWeight = '600';
themeLabel.style.textTransform = 'uppercase';
themeLabel.innerHTML = removePrefixName(currentTheme);
themeLabel.textContent = removePrefixName(currentTheme);

const versionTag = document.createElement('span');
versionTag.innerHTML = 'V6';
Expand Down

0 comments on commit 5b86a2a

Please sign in to comment.