Skip to main content

extract

Function extract 

Source
pub fn extract(html: &str, format: ContentFormat) -> (String, bool)
Expand description

Convert html to the requested format. Owner: parser agent.

Returns (content, fell_back). fell_back is true when the Markdown/Text converter errored and we degraded to a naive tag strip (lower fidelity) — the caller turns that into a non-fatal warning. It is always false for Html/None (no conversion).