Module escape

Source
Expand description

Manage xml character escapes

Enums§

EscapeError
Error for XML escape / unescape.

Functions§

escape
Escapes an &str and replaces all xml special characters (<, >, &, ', ") with their corresponding xml escaped value.
partial_escape
Escapes an &str and replaces xml special characters (<, >, &) with their corresponding xml escaped value.
unescape
Unescape an &str and replaces all xml escaped characters (&...;) into their corresponding value.
unescape_with
Unescape an &str and replaces all xml escaped characters (&...;) into their corresponding value, using a resolver function for custom entities.