mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Fixes #370 - HTML characters in separator string should not be escaped
This commit is contained in:
parent
8e17e32a0e
commit
45735ce600
@ -53,7 +53,7 @@ class ForEach extends Node {
|
|||||||
|
|
||||||
body = body.items.concat([
|
body = body.items.concat([
|
||||||
builder.ifStatement(isNotLastTest, [
|
builder.ifStatement(isNotLastTest, [
|
||||||
builder.text(separator)
|
builder.text(separator, false)
|
||||||
])
|
])
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -0,0 +1 @@
|
|||||||
|
<b>red</b> <b>green</b> <b>blue</b>
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
<b for(item in ['red', 'green', 'blue'] | separator=' ')>
|
||||||
|
${item}
|
||||||
|
</b>
|
||||||
1
test/autotests/render/for-attr-separator-html/test.js
Normal file
1
test/autotests/render/for-attr-separator-html/test.js
Normal file
@ -0,0 +1 @@
|
|||||||
|
exports.templateData = {};
|
||||||
Loading…
x
Reference in New Issue
Block a user