Skip to main content

text_with_refs

Function text_with_refs 

Source
pub fn text_with_refs(doc: &Html, base_url: &str) -> (String, Vec<UrlReference>)
Expand description

Convert a parsed HTML document to reference-style plain text.

Returns the body text (with inline [N] markers) and the ordered list of references. The returned text does not include the rendered “References:” block — see render_references to append it.