Skip to main content
Oct 10, 2013 2:16 PM UTC
Delivered

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

16 replies

New Participant
Feb 7, 2020 5:33 AM UTC
No text available
Translate
Sep 3, 2015 10:58 AM UTC

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

Translate
Justin_Cooperm2
Level 10
Sep 3, 2015 3:42 PM UTC

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?

Translate
Sep 3, 2015 4:16 PM UTC

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>

Translate
Justin_Cooperm2
Level 10
Jun 16, 2015 4:57 PM UTC

Yes, comments are no longer stripped.

Translate
Jun 16, 2015 1:40 PM UTC

A definite must, can't wait for this update!!!!

Translate
Chris_Vanderma1
Level 4
Apr 20, 2015 1:09 PM UTC
Really looking forward to this! When released please update this thread.
Translate
Justin_Cooperm2
Level 10
Apr 17, 2015 7:04 PM UTC
This will be in the May release.
Translate
Jun 16, 2015 3:23 PM UTC

Has this been added?

Translate
Mar 15, 2015 5:56 AM UTC
+1
Translate
Sep 10, 2014 2:34 PM UTC
Another vote requesting that these comments not be stirpped out. The workaround for this issue is timely - not to mention irritating!
Translate
Chris_Vanderma1
Level 4
May 6, 2014 3:12 PM UTC
Please add support for this in Templates in the Design Studio! It's an important part of making our templates compatible with Outlook.
Translate
Mar 20, 2014 2:53 PM UTC
UPDATE  The comments are no longer stripped when you place the code directly into an email, but they are still being stripped from email templates.
Translate