Skip to content

Instantly share code, notes, and snippets.

@baniol
Created January 23, 2014 10:27
Show Gist options
  • Save baniol/8576260 to your computer and use it in GitHub Desktop.
Save baniol/8576260 to your computer and use it in GitHub Desktop.
extract text from html tag, regexp
data.replace(/[^<]*(<a href="([^"]+)">([^<]+)<\/a>)/g, function() {
matches.push(arguments[2]);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment