pub fn escape<'a>(raw: impl Into<Cow<'a, str>>) -> Cow<'a, str>Expand description
Escapes an &str and replaces all xml special characters (<, >, &, ', ")
with their corresponding xml escaped value.
This function performs following replacements:
| Character | Replacement |
|---|---|
< | < |
> | > |
& | & |
' | ' |
" | " |
This function performs following replacements:
| Character | Replacement |
|---|---|
< | < |
> | > |
& | & |
' | ' |
" | " |