Skip to content

Commit 78ad6fa

Browse files
committed
Merge pull request janl#119 from soitgoes/master
Back Slashes shouldn't be escaped in HTML
2 parents 4c4d3db + c4687d8 commit 78ad6fa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mustache.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,7 @@ var Mustache = function() {
246246
s = String(s === null ? "" : s);
247247
return s.replace(/&(?!\w+;)|["'<>\\]/g, function(s) {
248248
switch(s) {
249-
case "&": return "&amp;";
250-
case "\\": return "\\\\";
249+
case "&": return "&amp;";
251250
case '"': return '&quot;';
252251
case "'": return '&#39;';
253252
case "<": return "&lt;";

0 commit comments

Comments
 (0)