Created
April 9, 2013 01:17
-
-
Save lanqy/5342112 to your computer and use it in GitHub Desktop.
remove HTML tag
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
function removeHtmlTag(str){ | |
var reg = /(<([^>]+)>)/ig; | |
return str.replace(reg, ""); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment