Don't strip comments to target Outlook in HTML email

Don't strip comments to target Outlook in HTML email

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:
http://emailbtn.net/

16 Comments
Justin_Cooperm2
Level 10

Yes, comments are no longer stripped.

Anonymous
Not applicable

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

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?

Anonymous
Not applicable

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>

Justin_Cooperm2
Level 10

Is that the code before or after? Give me the before, then tell me what you did, then give me the after. If easier, email me at jcooperman@marketo.com

kh-lschutte
Community Manager
Status changed to: In Production