mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
xml: requested arrows and back-ticks.
This commit is contained in:
parent
aa67236fc3
commit
a9538950db
3 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
# xml escape
|
# xml escape
|
||||||
|
|
||||||
> Escape special XML characters, e.g. `<a1>` -> `<a1>`.
|
> Escape special XML characters, e.g. `<a1>` → `<a1>`.
|
||||||
> More information: <http://xmlstar.sourceforge.net/doc/xmlstarlet.pdf>.
|
> More information: <http://xmlstar.sourceforge.net/doc/xmlstarlet.pdf>.
|
||||||
|
|
||||||
- Escape special XML characters in a string:
|
- Escape special XML characters in a string:
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
`xml format --recover --noindent {{path/to/malformed.xml|URI}} > {{path/to/recovered.xml}}`
|
`xml format --recover --noindent {{path/to/malformed.xml|URI}} > {{path/to/recovered.xml}}`
|
||||||
|
|
||||||
- Format an XML document from stdin, removing the DOCTYPE declaration:
|
- Format an XML document from stdin, removing the `DOCTYPE` declaration:
|
||||||
|
|
||||||
`cat {{path\to\input.xml}} | xml format --dropdtd > {{path/to/output.xml}}`
|
`cat {{path\to\input.xml}} | xml format --dropdtd > {{path/to/output.xml}}`
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# xml unescape
|
# xml unescape
|
||||||
|
|
||||||
> Unescape special XML characters, e.g. `<a1>` -> `<a1>`.
|
> Unescape special XML characters, e.g. `<a1>` → `<a1>`.
|
||||||
> More information: <http://xmlstar.sourceforge.net/docs.php>.
|
> More information: <http://xmlstar.sourceforge.net/docs.php>.
|
||||||
|
|
||||||
- Unescape special XML characters from a string:
|
- Unescape special XML characters from a string:
|
||||||
|
|
Loading…
Add table
Reference in a new issue