Przeglądaj źródła

Merge pull request #119 from soitgoes/master

Back Slashes shouldn't be escaped in HTML
tags/0.4.0
Jan Lehnardt 14 lat temu
rodzic
commit
78ad6fa42a
1 zmienionych plików z 1 dodań i 2 usunięć
  1. +1
    -2
      mustache.js

+ 1
- 2
mustache.js Wyświetl plik

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


Ładowanie…
Anuluj
Zapisz