Files
tldr/pages/common/xml-escape.md
Daniel Birket 82f626c693 xml: changes requested by marchersimon,
which undo the "the" changes previously made for sbrl.
The `select`, `edit`, and `transform` subcommands are not yet ready.
2021-08-24 21:50:43 +01:00

17 lines
364 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 for the `escape` subcommand:
`xml escape --help`