XML Escape
Escape the five reserved XML characters in a block of text.
Loading tool…
About this tool
Escapes the five characters with special meaning in XML so text can appear as content or in an attribute value without breaking the document.
Questions
- Do I need this inside CDATA?
- No. A CDATA section is taken literally, which is the alternative to escaping — though it cannot itself contain the sequence that ends it.
Privacy
This page does its work in your browser. What you paste is processed by JavaScript running on your own device and is never sent to a DevToolery server — there is no server that could receive it. The page itself is a static file delivered by a CDN. See exactly what is stored.