Created
August 26, 2011 05:56
-
-
Save huobazi/1172797 to your computer and use it in GitHub Desktop.
Regular expression to remove HTML comments
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
text = text.gsub(/<!--(.|\s)*?-->/,'') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks