v6.5.1
Now bem-xjst trim and escape cls
. Example:
// Template:
block('b1').elem('e1').content()(function() {
return JSON.stringify(this.mods);
});
// BEMJSON:
[
{ block: 'b1', cls: '">' },
{ block: 'b2', cls: ' hello ' }
]
Result before fix (v6.5.0):
<div class="b ">"></div>
<div class=" hello "></div>
Result after fix (v6.5.1):
<div class="b ">"></div>
<div class="hello"></div>