Feng Tian Feng Tian - 1 month ago 23
HTML Question

Escape dollar sign in html

I want to display the string

awk '$1==1' test.txt
in the website.

But it doesn't work beacues it contain the
$
symbol.

How could I escape this symbol in html?

Answer

I got it.

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

This will display in the website:

awk '$1==1' test.txt