Kaynağa Gözat

Merge branch 'master' of git@github.com:janl/mustache.js

* 'master' of git@github.com:janl/mustache.js:
  don't die on null values
tags/0.2.3
Jan Lehnardt 16 yıl önce
ebeveyn
işleme
b1cd428dd6
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. +1
    -1
      mustache.js

+ 1
- 1
mustache.js Dosyayı Görüntüle

@@ -194,7 +194,7 @@ var Mustache = function() {
Does away with nasty characters
*/
escape: function(s) {
return s.toString().replace(/[&"<>\\]/g, function(s) {
return (s ? s.toString() : "").replace(/[&"<>\\]/g, function(s) {
switch(s) {
case "&": return "&amp;";
case "\\": return "\\\\";;


Yükleniyor…
İptal
Kaydet