From e72b635ca1f447f285973c65ac0f513eb19301ca Mon Sep 17 00:00:00 2001 From: Jan Lehnardt Date: Mon, 25 Oct 2010 13:10:50 +0200 Subject: [PATCH] one quote will do --- mustache.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mustache.js b/mustache.js index e19109f..35a8976 100644 --- a/mustache.js +++ b/mustache.js @@ -244,7 +244,7 @@ var Mustache = function() { */ escape: function(s) { s = String(s === null ? "" : s); - return s.replace(/&(?!\w+;)|["''<>\\]/g, function(s) { + return s.replace(/&(?!\w+;)|["'<>\\]/g, function(s) { switch(s) { case "&": return "&"; case "\\": return "\\\\";