pub fn escape(raw: &str) -> Cow<'_, str>
Expand description

Escapes an &str and replaces all xml special characters (<, >, &, ', ") with their corresponding xml escaped value.

This function performs following replacements:

CharacterReplacement
<&lt;
>&gt;
&&amp;
'&apos;
"&quot;