Skip to content

Instantly share code, notes, and snippets.

@beznosd
Created September 26, 2017 12:53
Show Gist options
  • Save beznosd/a6ab24709991f8da011b976efe6bf7c6 to your computer and use it in GitHub Desktop.
Save beznosd/a6ab24709991f8da011b976efe6bf7c6 to your computer and use it in GitHub Desktop.
Strip tags from string
function stripTags(str) {
return str.replace(/<\/?[^>]+>/gi, '');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment