XML Escape / Unescape · Tutorial
How to decode escaped text from XML
3 min readbeginnerUpdated
A log or export shows HTML stored inside XML as a jumble of < and & references. You will decode it to see the original markup.
What you need
- The XML Escape tool
Steps
Paste the escaped text
Load the example, which contains
<p>Price: €9.50 & free delivery</p>.Choose Unescape
Set Action to Unescape (decode). The result is
<p>Price: €9.50 & free delivery</p>.Use it
Copy the decoded HTML into an HTML viewer or editor to work with it.
Try it yourself
Opens the XML Escape / Unescape with this tutorial's sample loaded.
Common mistakes
- Expecting HTML names to decode
isn’t an XML entity, so it stays as it is. Replace it with a space or .- Decoding data you will put back into XML
- Decoded text must be escaped again before it goes back into an XML document.
Next steps
Go back to the XML Escape / Unescape, or keep going with one of these: