Email-builder / grunt-email-builder

Build Emails from HTML / CSS code in grunt
Other
94 stars 14 forks source link

Build turns Outlook comment into style tag #23

Closed lee-tomblin closed 10 years ago

lee-tomblin commented 10 years ago

When you're trying to hide content for Outlook with the comment tag:

<!--[if !mso]><!-- -- -->

It turns it into a style tag, example:

<!--[if !mso]><!-- -- --><div class="is-mobile">This will only show on mobile, and not outlook</div><!--<![endif]-->

Gets parsed to:

<!--[if !mso]><style type="text/css"></style><!--<![endif]-->

Is there a way to avoid this?

jeremypeter commented 10 years ago

Good catch, just fixed it - https://github.com/yargalot/Email-Builder/pull/24.

lee-tomblin commented 10 years ago

Nice, thanks.

Awesome job with this.