HTML string from bemjson is converted to text
rtemision opened this issue · 2 comments
rtemision commented
In bemjson:
{
block: 'some',
content: 'Text<br/>text2'
}
Result in html some times ago:
<div class="some">Text<br/>text2</div>
Result in html now
<div class="some">Text<br>Text</div>
tadatuta commented
@rteamx that's because of new default value for escaping in bem-xjst 8.x
.
you may switch it off with https://github.com/bem/bem-xjst/blob/master/docs/en/3-api.md#escaping or use html
field to render some particular nodes without escaping:
{
block: 'some',
content: {
html: 'Text<br/>text2'
}
}