Skip to main content

Function: htmlToText()

htmlToText(html, baseUrl?): object

Defined in: packages/tools/src/web/web-fetch.ts:186

HTML to readable text: drops scripts and styles, keeps headings, list items, links and paragraph breaks.

Parameters​

html​

string

baseUrl?​

string

Returns​

object

text​

text: string

title?​

optional title?: string