浏览代码

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


正在加载...
取消
保存