few-sapphireF
Apify & Crawlee2y ago
3 replies
few-sapphire

htmlToText not defined

I want to convert whole body of html to text. I'm trying this https://crawlee.dev/api/utils/function/htmlToText but its not finding htmlToText function. It says it's not defined. And yes I am doing import as described
 import cheerio from 'cheerio' 
I am also open to other options like turndown library. I don't want to convert just one element to text but the whole content of the page
Was this page helpful?