Skip to content

Instantly share code, notes, and snippets.

@luqmaan
Created October 29, 2012 19:27
Show Gist options
  • Save luqmaan/3975949 to your computer and use it in GitHub Desktop.
Save luqmaan/3975949 to your computer and use it in GitHub Desktop.
Strip the MailChimp email templates of their comments

Remove All MailChimp Comments

Use these Regex's in Sublime Text's find and replace area. https://github.com/mailchimp/Email-Blueprints

Remove the @editable's

/*@editable*/ 

Remove the inline comments (aka Yahoo Mail override's)

/* Yahoo! Mail Override */

Remove all other comments

/*[a-z0-9\/.",tn*@'-! \:]+*/

Remove HTML comments

<!--[a-z0-9\/.",tn*@'-! \:]*-->

Remove mc:edit attributes

mc:edit=["]*[']*[a-z0-9-_]*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment