xml-unescape

Decode XML entities to characters

TLDR

Unescape XML entities in a string
$ xml unescape "[<text>]"
Unescape XML entities from stdin
$ echo "[<text>]" | xml unescape
Using the short alias
$ xml unesc "[<text>]"

SYNOPSIS

xml unescape [options] [text]

DESCRIPTION

xml unescape (also `xml unesc`) converts XML entities back to their original characters. Part of the XMLStarlet toolkit. Decodes < > & ' " and numeric character references to their original characters.

PARAMETERS

text

Text with XML entities. If not provided, reads from standard input.
--help
Display usage information.

INSTALL

sudo dnf install xmlstarlet
sudo pacman -S xmlstarlet
sudo apk add xmlstarlet
sudo zypper install xmlstarlet
brew install xmlstarlet
nix profile install nixpkgs#xmlstarlet

SEE ALSO

xml-escape(1), xml-select(1), xmlstarlet(1)