Function escape
pub fn escape(input: &str) -> Cow<'_, str>Available on crate features
html and http only.Expand description
HTML-escape input, returning a Cow::Borrowed of the original
when nothing needs escaping — common in practice — and otherwise a
freshly allocated Cow::Owned with the escaped form.