jonkemp / gulp-inline-css

Inline linked css in an html file. Useful for emails.
MIT License
272 stars 29 forks source link

Errors with twig tags #39

Closed rocchidavide closed 6 years ago

rocchidavide commented 7 years ago

inlineCss() makes some errors if html tags contain tags like twig. For example:

{% if myvar <= 0 %}

becomes:

{% if myvar <= 0="" %}=""

How can I solve?

sudhirjena commented 7 years ago

I am having the same issue with erb syntax

For the below erb

<% end %> 
                            </th></tr></table></th>
                        </tr></tbody></table>
                        <table class="row">
Error in plugin 'gulp-inline-css'                                                       
Message:                                                                                           
    Parse Error: </%></%></th></tr></table></th>                                                   
                                                </tr></tbody></table>                              
                                                <table class="row" style="border-collapse: collapse
jonkemp commented 6 years ago

The plugin now has support for this.

https://github.com/jonkemp/gulp-inline-css#optionscodeblocks