소스 검색

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


불러오는 중...
취소
저장