kizu / bemto

Smart mixins for writing BEM in Pug
439 stars 66 forks source link

Attribute escaping in `bemto_custom_inline_tag` mixin fix. #85

Closed preusx closed 8 years ago

preusx commented 8 years ago

There was an issue in attributes escaping in bemto_custom_inline_tag mixin.

For example:

// There will be an image tag here because of src attribute:
+b.block(src!="<?php echo $something; ?>")

Would become:

<img src="&lt;php echo $something; &gt;" class="block" alt="" role="presentation"/>

Which is not an expected behaviour.

So, I made those changes and everything seems to work fine.