Przeglądaj źródła

one quote will do

tags/0.5.0-vsc
Jan Lehnardt 15 lat temu
rodzic
commit
e72b635ca1
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      mustache.js

+ 1
- 1
mustache.js Wyświetl plik

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


Ładowanie…
Anuluj
Zapisz