Skip to content

Commit

Permalink
[3.0.2] Fix: double encoding "&"
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricelambert authored Jan 27, 2023
1 parent 7282c55 commit da04703
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions WebScripts/static/js/webscripts_script_js_scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -912,8 +912,8 @@ class OutputBuilder {
/*
This function escapes HTML special characters.
*/
escape = str => str.replace(/</g, '&lt;').replace(/>/g, '&gt;')
.replace(/'/g, "&#x27;").replace(/"/g, '&quot;').replace(/&/g, '&amp;');
escape = str => str.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;')
.replace(/'/g, "&#x27;").replace(/"/g, '&quot;');

/*
This function replaces CRLF by universal new line.
Expand Down Expand Up @@ -1487,4 +1487,4 @@ class TableSearch {
}
}
}
}
}

0 comments on commit da04703

Please sign in to comment.