Realized I goofed in one spot. Fixed\!
This commit is contained in:
+1
-1
@@ -274,7 +274,7 @@ Handlebars.Compiler.prototype = {
|
||||
return this.addExpression(mustache);
|
||||
}
|
||||
|
||||
this.escaped = false;
|
||||
this.escaped = true;
|
||||
} else if(this.comment) {
|
||||
;
|
||||
} else {
|
||||
|
||||
+4
-4
@@ -27,11 +27,11 @@ test("boolean", function() {
|
||||
});
|
||||
|
||||
test("escaping", function() {
|
||||
shouldCompileTo("{{awesome}}", {awesome: "&\"\\<>"}, '&\"\\\\<>',
|
||||
"by default expressions should be escaped");
|
||||
|
||||
shouldCompileTo("{{{awesome}}}", {awesome: "&\"\\<>"}, '&\"\\<>',
|
||||
shouldCompileTo("{{{awesome}}}", {awesome: "&\"\\<>"}, '&\"\\<>',
|
||||
"expressions with 3 handlebars aren't escaped");
|
||||
|
||||
shouldCompileTo("{{awesome}}", {awesome: "&\"\\<>"}, '&\"\\\\<>',
|
||||
"by default expressions should be escaped");
|
||||
});
|
||||
|
||||
test("functions", function() {
|
||||
|
||||
Reference in New Issue
Block a user