pub fn escape(input: &str) -> Cow<'_, str>Available on crate feature
html 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.