Function html_escape::encode_single_quoted_attribute
source · pub fn encode_single_quoted_attribute<S: ?Sized + AsRef<str>>(
text: &S
) -> Cow<'_, str>
Expand description
Encode text used in a single-quoted attribute.
The following characters are escaped:
&
=>&
<
=><
>
=>>
'
=>'