mirror of https://github.com/CrimsonTome/tldr.git
17 lines
365 B
Markdown
17 lines
365 B
Markdown
# xml escape
|
|
|
|
> Escape special XML characters, e.g. `<a1>` → `<a1>`.
|
|
> 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 for the `escape` subcommand:
|
|
|
|
`xml escape --help`
|