Skip to content

Instantly share code, notes, and snippets.

@mcatta
Created September 9, 2013 14:16
Show Gist options
  • Save mcatta/6496191 to your computer and use it in GitHub Desktop.
Save mcatta/6496191 to your computer and use it in GitHub Desktop.
remove div tag JS via regular expression
var cleanText = strInputCode.replace(/<[\/]{0,1}(div)[^><]*>/g,"");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment