Skip to content

Instantly share code, notes, and snippets.

@spig
Last active October 14, 2019 18:26
Show Gist options
  • Save spig/364e96e1199f5362f68f2322e2c110e0 to your computer and use it in GitHub Desktop.
Save spig/364e96e1199f5362f68f2322e2c110e0 to your computer and use it in GitHub Desktop.
Get text of matching elements
Array.from(document.getElementsByClassName("CLASSNAME")).map(e => e.textContent).join(',');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment