Skip to main content

preview_html

Function preview_html 

Source
pub fn preview_html(html: &str, max_len: usize) -> String
Expand description

A text preview of an HTML document: crate::html_to_text of the document cut like preview_text. Only the part of the document that the preview needs is converted.