Explorar el Código

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 hace 16 años
padre
commit
b1cd428dd6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      mustache.js

+ 1
- 1
mustache.js Ver fichero

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


Cargando…
Cancelar
Guardar