Function escape_html

Source
pub fn escape_html(str: &str) -> Cow<'_, str>
Expand description

Escape < > " & with corresponding HTML entities;

assert_eq!(escape_html("&\""), "&amp;&quot;");