Skip to content

Instantly share code, notes, and snippets.

@raspo
Created April 27, 2012 08:10
Show Gist options
  • Save raspo/2507325 to your computer and use it in GitHub Desktop.
Save raspo/2507325 to your computer and use it in GitHub Desktop.
Strip HTML code from string
var myString = '<span title="title">test</span>';
myString.replace(/<(?:.|\n)*?>/gm, '');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment