瀏覽代碼

one quote will do

tags/0.5.0-vsc
Jan Lehnardt 15 年之前
父節點
當前提交
e72b635ca1
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      mustache.js

+ 1
- 1
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 "&amp;";
case "\\": return "\\\\";


Loading…
取消
儲存