A fetched HTML page as text, headings, links and metadata.
Three ports, each with a JDK-only default: IHtmlStructureParser walks the markup into blocks (one paragraph per block, headings as markdown heading lines, pre blocks fenced), IHtmlTextExtractor reduces that to text, and IWebsiteMetadataParser reads title, description and canonical URL. IWebsiteParser composes them and is the port a consumer injects at.
Rationale: hive memory 20260906010127-029f8f5e.
A fetched HTML page as text, headings, links and metadata. Three ports, each with a JDK-only default: IHtmlStructureParser walks the markup into blocks (one paragraph per block, headings as markdown heading lines, pre blocks fenced), IHtmlTextExtractor reduces that to text, and IWebsiteMetadataParser reads title, description and canonical URL. IWebsiteParser composes them and is the port a consumer injects at. Rationale: hive memory 20260906010127-029f8f5e.
(parse-website-page this html opts)BODY as a page map {:url :canonical-url :title :description :content :headings :links ...}. opts carries :url. Returns Result<page>.
BODY as a page map {:url :canonical-url :title :description :content
:headings :links ...}. opts carries :url. Returns Result<page>.(parse-page html opts)Parse one HTML page into page fields with the default parser. opts carries :url. Returns Result<page>.
Parse one HTML page into page fields with the default parser. opts carries :url. Returns Result<page>.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |