Function escape_html_entities

Source
pub fn escape_html_entities<T: AsRef<str>>(text: T) -> String
Expand description

HTML escape an input string.

§Examples

assert_eq!(escape_html_entities("<"), "&lt;");