From c4687d856cfbb43d29b60d82159880ecac798536 Mon Sep 17 00:00:00 2001 From: Martin Murphy Date: Wed, 14 Sep 2011 11:17:55 -0500 Subject: [PATCH] slash (\) should not be escaped in html --- mustache.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mustache.js b/mustache.js index e7c22c7..0c219d7 100644 --- a/mustache.js +++ b/mustache.js @@ -246,8 +246,7 @@ var Mustache = function() { s = String(s === null ? "" : s); return s.replace(/&(?!\w+;)|["'<>\\]/g, function(s) { switch(s) { - case "&": return "&"; - case "\\": return "\\\\"; + case "&": return "&"; case '"': return '"'; case "'": return '''; case "<": return "<";