Skip to main content

convert_html

Function convert_html 

Source
pub fn convert_html(
    html: &str,
    source_url: &str,
    options: &FetchOptions,
) -> FetchResult
Expand description

Convert already-fetched HTML into a FetchResult without any network I/O.

Useful for tests and for callers that obtain HTML by other means. Always treats the input as HTML; use convert_body for media-aware handling.