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 "\\\\";