System Grab Bag

View all TLDR pages from common (or from all pages)

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

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.