xml-escape

escape Escape special XML characters, e.g. <a1> → <a1>. More…

xml escape

Escape special XML characters, e.g. <a1>&lt;a1&gt;. More information: http://xmlstar.sourceforge.net/doc/xmlstarlet.pdf.

xml escape "{{<a1>}}"

echo "{{<a1>}}" | xml escape

xml escape --help

Также может быть вам интересно:
КодТрюки BashНастройкиТерминал/Консоль
← xml-elements xml-format →