← 返回命令列表

Linux command

xml-escape 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Escape XML special characters

xml escape [text]

Escape from stdin

echo "[<text>]" | xml escape

说明

xml escape escapes special XML characters. Part of xmlstarlet toolkit. Converts <, >, &, ', " to their XML entity equivalents for safe inclusion in XML documents.

FAQ

What is the xml-escape command used for?

xml escape escapes special XML characters. Part of xmlstarlet toolkit. Converts <, >, &, ', " to their XML entity equivalents for safe inclusion in XML documents.

How do I run a basic xml-escape example?

Run `xml escape [text]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more xml-escape examples?

This page includes 2 examples for xml-escape, plus related commands for nearby Linux tasks.