Skip to main content

escape_html

Function escape_html 

Source
pub fn escape_html<'a, S: Into<Cow<'a, str>>>(input: S) -> Cow<'a, str>
Expand description

Escapes characters unsafe within HTML text content (<, >, &), returning the input unchanged (borrowed) when no escaping is needed.