Skip to content

Instantly share code, notes, and snippets.

@lanqy
Created April 9, 2013 01:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lanqy/5342112 to your computer and use it in GitHub Desktop.
Save lanqy/5342112 to your computer and use it in GitHub Desktop.
remove HTML tag
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