Files
tldr/pages/common/xml-escape.md
Vitor Henrique 46a054215a pages*: make help and version commands comply with the style guide (#12107)
* pages*: use generic word for help

* git: add newline to the end

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* pages*: make help and version commands comply with the style guide

* java: fix Java name

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-01-30 12:55:24 +08:00

17 lines
338 B
Markdown

# xml escape
> Escape special XML characters, e.g. `<a1>` → `&lt;a1&gt;`.
> More information: <http://xmlstar.sourceforge.net/doc/xmlstarlet.pdf>.
- Escape special XML characters in a string:
`xml escape "{{<a1>}}"`
- Escape special XML characters from `stdin`:
`echo "{{<a1>}}" | xml escape`
- Display help:
`xml escape --help`