HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

xml unescape — Unescape special XML characters, e.g. `&lt;a1&gt;` → `<a1>`. More information: <https://xmlstar.sour

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandspecialxml unescapeunescapeclicharactersmorexml

Problem

How to use the xml unescape command: Unescape special XML characters, e.g. &lt;a1&gt;<a1>. More information: <https://xmlstar.sourceforge.net/doc/UG/xmlstarlet-ug.html#idm47077139540960>.

Solution

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 {{[unesc|unescape]}} --help

Code Snippets

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 {{[unesc|unescape]}} --help

Context

tldr-pages: common/xml unescape

Revisions (0)

No revisions yet.