Encoders / Escapers / Crypto
XML Escape
Escape / unescape XML entities.
XML0 chars
XML (escaped)
Guide & explanation
XML Escape replaces the five characters reserved by XML with their built-in entities so text is safe inside element content or an attribute value.
Mapping
| Character | Entity |
|---|---|
& | & |
< | < |
> | > |
" | " |
' | ' |
Example
<note prio="high">3 < 5 & correct</note>
The text 3 < 5 & correct must become 3 < 5 & correct.
The Unescape mode also resolves decimal (<) and hexadecimal (<) numeric character references.