2021年1月5日星期二

Cheerio - get only text from html file

I would like to know if there's a way to only get the text from an XTML loaded to Cherrio.

const html = cheerio.load(originalHtmlString);  

how can I access just the content ? without needing to loop through each element.

Thanks in advance

https://stackoverflow.com/questions/65578716/cheerio-get-only-text-from-html-file January 05, 2021 at 08:14PM

没有评论:

发表评论