Function html_escape::encode_safe
source · pub fn encode_safe<S: ?Sized + AsRef<str>>(text: &S) -> Cow<'_, str>
Expand description
Encode text to prevent special characters functioning.
The following characters are escaped:
&
=>&
<
=><
>
=>>
"
=>"
'
=>'
/
=>/