commands.sh

xml escape

all

Escape special XML characters, e.g. `<a1>` → `&lt;a1&gt;`.

More info →

Options (1)

boolean

Escape special XML characters in a string

Example: xml {{[esc|escape]}} "{{<a1>}}"

Examples (3)

Escape special XML characters in a string

xml [esc|escape] "<a1>"

Escape special XML characters from `stdin`

echo "<a1>" | xml [esc|escape]

Display help

xml [esc|escape] --help
made by @shridhargupta | data from tldr-pages