Skip to content

src/html-text

Turning fetched HTML into the plain text a model can read.

Both scraping paths need this: runWebFetch’s full-page read and runScrapeSearch’s title/snippet extraction. Parser-backed conversion keeps malformed markup, quoted > characters, and the complete HTML entity table consistent across both paths.