xml unescape

Unescape special XML characters, e.g. &lt;a1&gt;<a1>. More information: http://xmlstar.sourceforge.net/docs.php.

xml unescape "&lt;a1&gt;"

echo "&lt;a1&gt;" | xml unescape

xml escape --help