Skip to main content

escape_attr

Function escape_attr 

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

Escapes characters unsafe within an HTML attribute value (<, >, &, "), returning the input unchanged (borrowed) when no escaping is needed.