readableHtml
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
Get a readable representation of an HTML page
console.log(await readableHtml("<html><body><h1>Main title</h1><p>Some content</p></body></html>"));
// Main titleSome content
console.log(await readableHtml(new URL("https://en.wikipedia.org/wiki/Special:Random")));
// From Wikipedia, the free encyclopedia
// George Miles ChilcottUnited States Senatorfrom ColoradoIn officeApril 17, 1882 – January 27,...