Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Escape dollar sign in html

Tags:

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?

like image 367
Feng Tian Avatar asked Aug 29 '15 13:08

Feng Tian


People also ask

How do I get rid of the dollar sign in HTML?

Try $ in its place.

What is a dollar sign in HTML?

$ - dollar sign (U+0024) - HTML Symbols.


1 Answers

I got it.

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

This will display in the website:

awk '$1==1' test.txt
like image 62
Feng Tian Avatar answered Sep 29 '22 07:09

Feng Tian