-
Notifications
You must be signed in to change notification settings - Fork 27
Notes
Richard Frost edited this page Nov 18, 2017
·
7 revisions
https://github.com/ericwbailey/millennials-to-snake-people
https://github.com/RobotCopy/Adieu-Profanity-Filters
Someone suggested using an XPath like this:
var evalResult = document.evaluate( './/*[not(ancestor-or-self::script or ancestor-or-self::style)]/text()[normalize-space(.) != ""]', node, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null );