335 B
335 B
XML 转义
转义特殊的 XML 字符,例如
<a1>
→<a1>
。 更多信息:https://xmlstar.sourceforge.net/doc/xmlstarlet.pdf。
- 转义字符串中的特殊 XML 字符:
xml escape "{{<a1>}}"
- 从
stdin
转义特殊 XML 字符:
echo "{{<a1>}}" | xml escape
- 显示帮助:
xml escape --help