Skip to content

v6.5.1

Compare
Choose a tag to compare
@miripiruni miripiruni released this 20 May 10:45
· 473 commits to master since this release

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 &quot;>"></div>
<div class="hello"></div>