Skip to main content

html_to_text

Function html_to_text 

Source
pub fn html_to_text(input: &str) -> String
Expand description

Converts HTML to plain text: tags are removed, entities decoded and white space collapsed; <br> and </p> become line breaks; the content of <head>, <style>, <script> and <template> is skipped.