code: function nodeText (node) {
    return squashWhitespace(node.textContent)
  
    function squashWhitespace (string) {
      return string.replace(/\s{2,}/g, ' ').trim()
    }
  }
docs: Squashed and trimmed node text content