Skip to content

Instantly share code, notes, and snippets.

@lingsamuel
Created August 23, 2018 05:07
Show Gist options
  • Save lingsamuel/24dea8921e8116232610098dcd804f17 to your computer and use it in GitHub Desktop.
Save lingsamuel/24dea8921e8116232610098dcd804f17 to your computer and use it in GitHub Desktop.
Extract raw text from TXDocs
Array.from(document.getElementById("editor").getElementsByTagName("div")).map(x=>x.innerText).join("\n")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment