1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-08 16:06:02 +02:00
tldr/pages/common/xml-unescape.md
2025-05-11 21:14:19 +03:00

16 lines
424 B
Markdown

# xml unescape
> Unescape special XML characters, e.g. `&lt;a1&gt;` → `<a1>`.
> More information: <https://xmlstar.sourceforge.net/doc/UG/xmlstarlet-ug.html#idm47077139540960>.
- Unescape special XML characters from a string:
`xml {{[unesc|unescape]}} "{{&lt;a1&gt;}}"`
- Unescape special XML characters from `stdin`:
`echo "{{&lt;a1&gt;}}" | xml {{[unesc|unescape]}}`
- Display help:
`xml {{[esc|escape]}} --help`