Fixes #370 - HTML characters in separator string should not be escaped

This commit is contained in:
Patrick Steele-Idem 2016-09-29 05:29:23 -06:00
parent 8e17e32a0e
commit 45735ce600
4 changed files with 6 additions and 1 deletions

View File

@ -53,7 +53,7 @@ class ForEach extends Node {
body = body.items.concat([
builder.ifStatement(isNotLastTest, [
builder.text(separator)
builder.text(separator, false)
])
]);
}

View File

@ -0,0 +1 @@
<b>red</b> &nbsp; <b>green</b> &nbsp; <b>blue</b>

View File

@ -0,0 +1,3 @@
<b for(item in ['red', 'green', 'blue'] | separator=' &nbsp; ')>
${item}
</b>

View File

@ -0,0 +1 @@
exports.templateData = {};