How to use XML Escape
- Paste or type the text you want to escape.
- Adjust the options if you need to.
- Copy the escaped result.
About XML Escape
XML has five predefined entities, and you have to use them whenever those characters appear in text or in an attribute value. An unescaped ampersand or angle bracket makes the whole document invalid, and a parser will refuse to read it at all, so there is no partial credit.
Escaping is easy to forget when you build XML by gluing strings together. Paste the raw text here and you get a version that is safe to drop between tags or inside an attribute.
What gets escaped
& becomes &, < becomes <, > becomes >, " becomes " and ' becomes '.