Skip to content

Instantly share code, notes, and snippets.

@esedic
Created June 7, 2014 08:11
Show Gist options
  • Save esedic/072af0b2cf1f6548195f to your computer and use it in GitHub Desktop.
Save esedic/072af0b2cf1f6548195f to your computer and use it in GitHub Desktop.
Remove HTML comments with ReReplacer
Removes all
<!--.*?-->
Leaves conditional comments, i.e. <!--[if IE]>
<!--(?!\[).*?(?!<\])-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment