Skip to content

Commit

Permalink
corrected variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Dębiński committed Mar 19, 2024
1 parent b73d5ca commit 9a4e359
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bundle/Resources/public/js/scripts/helpers/text.helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
return stringTempNode.innerHTML;
};

const escapeHTMLAttribute = (str) => {
if (str === null) {
const escapeHTMLAttribute = (string) => {
if (string === null) {
return '';
}

return String(str)
return String(string)
.replace(/&/g, '&')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
Expand Down

0 comments on commit 9a4e359

Please sign in to comment.