pub fn encode_safe_to_string<S: AsRef<str>>(
text: S,
output: &mut String,
) -> &strExpand description
Encode &, <, >, ", ', and / as HTML entities, write the result to a mutable String reference, and return the encoded string slice.
This function is not a context-independent sanitizer. Use a context-specific encoder for text, attributes, scripts, and styles.
The following characters are escaped:
&=>&<=><>=>>"=>"'=>'/=>/