Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does 'HTML is escaping' mean?

Tags:

html

escaping

Why is HTML is escaping = HTML is showing as it is?

Example: If I try to put any HTML tag here, it will not show that tag (it will simply work). What is it? Escaping or not escaping?

like image 343
user248627 Avatar asked Aug 24 '26 00:08

user248627


1 Answers

Escaping in HTML means, that you are replacing some special characters with others. In HTML it means usually you replace e.g. < or > or " or &. These characters have special meanings in HTML.

Imagine, you write

<b>Hello, World!</b>

And the text will appear as Hello, World!. But sometime you don't want to have this behaviour. So you replace the < and >.

&lt;b&gt;Hello, World!&lt;/b&gt;

This will result in <b>Hello, World!</b>.

like image 157
tjati Avatar answered Aug 25 '26 15:08

tjati



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!