Escape special XML characters, e.g. <a1> → <a1>. More information: https://xmlstar.sourceforge.net/doc/xmlstarlet.pdf.
<a1>
<a1>
xml escape "<a1>"
stdin
echo "<a1>" | xml escape
xml escape --help