Skip to main content

render_html

Function render_html 

Source
pub async fn render_html(url: &str) -> Result<String>
Expand description

Render HTML content from a URL using a headless browser

This function uses browser-commander to launch a headless browser, navigate to the URL, and return the rendered HTML content.

Note: This requires Chrome/Chromium to be installed on the system.

§Arguments

  • url - The URL to render

§Returns

The rendered HTML content as a string

§Errors

Returns an error if browser operations fail