Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.
TypeScript apifyautomationcrawlercrawlingheadlessheadless-chromejavascriptnodejsnpmplaywrightpuppeteerscraperscrapingtypescriptweb-crawlerweb-crawlingweb-scraping
Updated docs of Apify.utils.htmlToText()
Jan Curn618933b58d19
diff --git a/src/utils.js b/src/utils.jsindex 57e16523c..c46e53b71 100644--- a/src/utils.js+++ b/src/utils.js@@ -515,6 +515,7 @@ const BLOCK_TAGS_REGEX = /^(p|h1|h2|h3|h4|h5|h6|ol|ul|li|pre|address|blockquote|* @param {String|Function} html HTML text or parsed HTML represented using a* [cheerio](https://www.npmjs.com/package/cheerio) function.* @return {String} Plain text+ * @memberOf utils*/export const htmlToText = (html) => {if (!html) return '';