Skip to main content

fetch_html

Function fetch_html 

Source
pub async fn fetch_html(
    url: &str,
    max_chars: usize,
    opts: HttpOptions,
) -> Result<String, HttpError>
Expand description

Fetch a URL and convert HTML to readable plain text. Non-HTML content is returned as-is. Truncated to max_chars.