2021-08-16 08:23:55 -04:00
|
|
|
# xml unescape
|
2021-08-14 18:17:52 -04:00
|
|
|
|
2021-08-23 21:26:03 -04:00
|
|
|
> Unescape special XML characters, e.g. `<a1>` → `<a1>`.
|
2025-05-11 21:14:19 +03:00
|
|
|
> More information: <https://xmlstar.sourceforge.net/doc/UG/xmlstarlet-ug.html#idm47077139540960>.
|
2021-08-14 18:17:52 -04:00
|
|
|
|
2021-08-14 21:49:20 -04:00
|
|
|
- Unescape special XML characters from a string:
|
|
|
|
|
2025-05-11 21:14:19 +03:00
|
|
|
`xml {{[unesc|unescape]}} "{{<a1>}}"`
|
2021-08-14 21:49:20 -04:00
|
|
|
|
2022-12-04 08:53:34 +01:00
|
|
|
- Unescape special XML characters from `stdin`:
|
2021-08-14 21:49:20 -04:00
|
|
|
|
2025-05-11 21:14:19 +03:00
|
|
|
`echo "{{<a1>}}" | xml {{[unesc|unescape]}}`
|
2021-08-14 21:49:20 -04:00
|
|
|
|
2024-01-30 01:55:24 -03:00
|
|
|
- Display help:
|
2021-08-14 18:17:52 -04:00
|
|
|
|
2025-05-11 21:14:19 +03:00
|
|
|
`xml {{[esc|escape]}} --help`
|