Function dissolve::strip_html_tags [] [src]

pub fn strip_html_tags(input: &str) -> Vec<String>

Consumes a string that contains HTML5 tags and outputs a Vec containing the text content inside the tags in a pre-order manner.

Basic usage:

let input = "<html>Hello World!</html>".to_owned();
let output = strip_html_tags(input);
assert_eq!(output, "Hello World!".to_owned());