Преглед изворни кода

slash (\) should not be escaped in html

tags/0.4.0
Martin Murphy пре 14 година
родитељ
комит
c4687d856c
1 измењених фајлова са 1 додато и 2 уклоњено
  1. +1
    -2
      mustache.js

+ 1
- 2
mustache.js Прегледај датотеку

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


Loading…
Откажи
Сачувај