逃生美元符号html

时间:2015-08-29 13:15:17

标签: html

我想在网站上显示字符串awk '$1==1' test.txt

但它不会起作用,因为它包含$符号。

如何在html中转义此符号?

1 个答案:

答案 0 :(得分:8)

我明白了。

<p> awk '&#36;1==1' test.txt <\p>

这将显示在网站上:

awk '$1==1' test.txt
相关问题