Skip to main content

extract_documentation_html

Function extract_documentation_html 

Source
pub fn extract_documentation_html(html: &str) -> String
Expand description

Extract documentation from HTML as cleaned HTML.

Isolates the docs.rs main content area and runs the shared clean_html pass (removing <head>, scripts, styles, navigation, sidebars, footers, buttons and source-code links). Unlike extract_documentation, the result remains HTML rather than being converted to Markdown, so callers requesting the html format get the documentation body instead of the entire raw page.