Skip to content

Commit b2b4598

Browse files
authored
Merge pull request #2 from cooljeanius/autofix/alert-1-3248052943
Fix code scanning alert #1: Double escaping or unescaping via CoPilot Autofix
2 parents a3092ff + 9b9bedf commit b2b4598

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

html/lib/GitX.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ String.prototype.escapeHTML = function() {
1414
};
1515

1616
String.prototype.unEscapeHTML = function() {
17-
return this.replace(/&amp;/g,'&').replace(/&lt;/g,'<').replace(/&gt;/g,'>');
17+
return this.replace(/&lt;/g,'<').replace(/&gt;/g,'>').replace(/&amp;/g,'&');
1818
};
1919

2020
Element.prototype.toggleDisplay = function() {

0 commit comments

Comments
 (0)