Feng Tian Feng Tian - 9 months ago 100
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

How could I escape this symbol in html?


I got it.

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

This will display in the website:

awk '$1==1' test.txt