mail_parser::parsers::preview

Function truncate_html

Source
pub fn truncate_html<'x, 'y>(html: Cow<'y, str>, max_len: usize) -> Cow<'x, str>