Skip to content

Instantly share code, notes, and snippets.

@kangax kangax/gist:21b031672fcce0810e6f Secret
Last active Aug 29, 2015

Embed
What would you like to do?
// <div>foo <span>bar</span> baz</div>
var text = element.textContent || element.innerText; // "foo bar baz"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.