Feng Tian Feng Tian - 1 year ago 148
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?

Answer Source

I got it.

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

This will display in the website:

awk '$1==1' test.txt
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download