Skip to main content

html_to_text

Function html_to_text 

Source
pub fn html_to_text(html: &str, format: OutputFormat) -> String
Expand description

Convert HTML to readable text. Scripts, styles and comments are dropped; block elements become line breaks. In Markdown mode headings become # lines and list items - lines.