We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60db4c4 commit b8b92e6Copy full SHA for b8b92e6
html/commit.js
@@ -34,7 +34,9 @@ var selectCommit = function(a) {
34
35
var showDiffs = function() {
36
$("details").hide();
37
- $("details").innerHTML = commit.diff;
+
38
+ $("details").innerHTML = commit.diff.escapeHTML();
39
40
highlightDiffs();
41
$("details").show();
42
}
html/diffHighlighter.js
@@ -12,7 +12,7 @@ var highlightDiffs = function() {
12
if (l.length > 100)
13
l = l.substring(0, 100);
14
15
- l = l.escapeHTML().gsub("\t", " ");
+ l = l.gsub("\t", " ");
16
17
if (l.startsWith("+"))
18
newContent += "<div class='addline'>" + l + "</div>";
0 commit comments