瀏覽代碼

slash (\) should not be escaped in html

tags/0.4.0
Martin Murphy 14 年之前
父節點
當前提交
c4687d856c
共有 1 個檔案被更改,包括 1 行新增2 行删除
  1. +1
    -2
      mustache.js

+ 1
- 2
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 "&amp;";
case "\\": return "\\\\";
case "&": return "&amp;";
case '"': return '&quot;';
case "'": return '&#39;';
case "<": return "&lt;";


Loading…
取消
儲存