Przeglądaj źródła

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 lat temu
rodzic
commit
b1cd428dd6
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      mustache.js

+ 1
- 1
mustache.js Wyświetl plik

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


Ładowanie…
Anuluj
Zapisz