Skip to content

Instantly share code, notes, and snippets.

@tomcardoso
Created January 25, 2024 16:52
Show Gist options
  • Save tomcardoso/764be3b2cdd4919ecc9da70fee809c28 to your computer and use it in GitHub Desktop.
Save tomcardoso/764be3b2cdd4919ecc9da70fee809c28 to your computer and use it in GitHub Desktop.
Counting words in ATI reports
Array.from(document.querySelectorAll("main p")).map(d => d.textContent.trim()).join(" ").split(/\s+/).length
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment