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
  • 4935 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

New Participant
February 7, 2020
No text available
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
New Participant
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>

Justin_Cooperm2
New Participant
June 16, 2015

Yes, comments are no longer stripped.

June 16, 2015

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

Chris_Vanderma1
New Participant
April 20, 2015
Really looking forward to this! When released please update this thread.
Justin_Cooperm2
New Participant
April 17, 2015
This will be in the May release.
June 16, 2015

Has this been added?

March 15, 2015
+1
September 10, 2014
Another vote requesting that these comments not be stirpped out. The workaround for this issue is timely - not to mention irritating!
Chris_Vanderma1
New Participant
May 6, 2014
Please add support for this in Templates in the Design Studio! It's an important part of making our templates compatible with Outlook.
March 20, 2014
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.