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

Steps

  1. Paste the escaped text

    Load the example, which contains <p>Price: €9.50 & free delivery</p>.

  2. Choose Unescape

    Set Action to Unescape (decode). The result is <p>Price: €9.50 & free delivery</p>.

  3. 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.

Try it now

Common mistakes

Expecting HTML names to decode
&nbsp; isn’t an XML entity, so it stays as it is. Replace it with a space or &#160;.
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: