[−][src]Function html_escape::encode_text
pub fn encode_text<S: ?Sized + AsRef<str>>(text: &S) -> Cow<str>
Encode text used as regular HTML text.
The following characters are escaped:
&
=>&
<
=><
>
=>>
pub fn encode_text<S: ?Sized + AsRef<str>>(text: &S) -> Cow<str>
Encode text used as regular HTML text.
The following characters are escaped:
&
=> &
<
=> <
>
=> >