mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-05 08:55:47 +00:00
Update cheatsheets
This commit is contained in:
21
xml-escape
Normal file
21
xml-escape
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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:
|
||||
|
||||
`xml escape --help`
|
||||
Reference in New Issue
Block a user