2021-08-14 23:17:52 +01:00
|
|
|
# xml-escape
|
|
|
|
|
2021-08-15 19:38:24 +01:00
|
|
|
> Escape special XML characters.
|
2021-08-15 12:19:09 +01:00
|
|
|
> More information: <http://xmlstar.sourceforge.net/doc/xmlstarlet.pdf>.
|
2021-08-14 23:17:52 +01:00
|
|
|
|
2021-08-15 02:49:20 +01:00
|
|
|
- Escape special XML characters in a string:
|
|
|
|
|
|
|
|
`xml escape {{"<a1>"}}`
|
|
|
|
|
|
|
|
- Escape special XML characters in standard input:
|
|
|
|
|
|
|
|
`echo {{"<a1>"}} | xml escape`
|
|
|
|
|
2021-08-14 23:17:52 +01:00
|
|
|
- Display help for `escape` subcommand:
|
|
|
|
|
|
|
|
`xml escape --help`
|