Prevent conditional comments being stripped out in email template? | Community
Skip to main content
January 20, 2014
Question

Prevent conditional comments being stripped out in email template?

  • January 20, 2014
  • 11 replies
  • 4598 views
I spent two days trying to figure out why parts of an email template I'm developing weren't displaying correctly in Outlook, and I finally discovered that Marketo is stripping out the Microsoft conditional comments (e.g. <!--[if mso]>...<![endif]-->) that target Outlook's rendering limitations. I did some experimeting, and Marketo does not strip them out if they are added to an editable region when editting an email under Marketing Activites. They only seem to be stripped out when they are part of the email template.

Has anyone else run into this issue, and are there any workarounds? I consider this a pretty big limitation in Marketo's email templating system (right up there with the lack of automatic CSS inlining).
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

11 replies

Justin_Cooperm2
Level 10
October 14, 2015

Please see this thread:

Marketo Removing Code for Image Scaling for Outlook at 125%dpi

We have resolved this issue and can enable the fix for your subscription if you're interested. Please see the comments in the idea above for more details.

Dan_Stevens_
Level 10
October 14, 2015

I just finished testing... AND IT WORKS!!!!  Thanks so much, Justin!  BTW, it's not just the DOCTYPE that caused the issues, but Marketo was also stripping the xmlns definitions within the <HTML> tag, just after the DOCTYPE.  These critical three lines of code are now also being preserved.