Don't strip comments to target Outlook in HTML email | Community
Skip to main content
October 10, 2013
Delivered

Don't strip comments to target Outlook in HTML email

  • October 10, 2013
  • 12 replies
  • 4942 views

I'm using comments to target Outlook in my HTML emails, for example: <!--[if mso]>

Marketo strips all comments from the HTML in email templates.
I don't understand why, when comments are so integral to good responsive design in Outlook. Maybe this is a feature they could work out in the future?

An example of the usefulness of mso targeting:
emailbtn.net/

12 replies

September 3, 2015

We are still seeing the end tags for [if mso] statements altered to &lt;![endif]--&gt;

I'm not sure if this is only occurring in the updated version of the mce editor or was a problem previously

Justin_Cooperm2
Level 10
September 3, 2015

This is different from this idea. This idea tracked not stripping comments from Email Templates when you create a new Email from them. This has now been implemented. There is still an issue where if you have certain DOCTYPES or have used VML in your template, it may get stripped. We're working on a fix for that as we speak.

Your comment is separate. I believe what you are saying is that when you open an editable text region in the Email Editor, it is changing your commented conditional outlook statements? If so, can you paste me the block of code and I will look into it?

September 3, 2015

Sorry to add to this idea, I'll take my problem elsewhere if needs be. Code is this with broken tags in bold:

<td align="center" valign="middle">

                        <!--[if mso]>

                        <v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="#" style="height:60px;v-text-anchor:middle;width:160px;" arcsize="75%" strokecolor="#ffffff" fillcolor="#fd713a">

                            <w:anchorlock/>

                            <center style="color:#ffffff;font-family:'Helvetica', 'Arial', sans-serif;font-size:14px;font-weight:bold;">Apply Now</center>

                        </v:roundrect>

                        &lt;![endif]--&gt;<a href="#" style="background-color:#fd713a;border:6px solid #ffffff;border-radius:30px;color:#ffffff;display:inline-block;font-family:sans-serif;font-size:14px;font-weight:bold;line-height:44px;text-align:center;text-decoration:none;text-transform:uppercase;width:160px;-webkit-text-size-adjust:none;mso-hide:all;">Apply Now</a>

                    </td>

February 7, 2020
No text available