HTML Escape and Unescape

There are some special characters that are reserved for use in HTML document. It means that browser will parse these characters as HTML code instead of displaying them as text in the webpage. If we want to display these characters as text, we need to replace them with their corresponding character entities.

CharacterReplacement
&&
<&lt;
>&gt;
"&quot;
'&#039; (decimal code) or &#x27; (hex code)
No.Programming language
1.PHP
2.Python

Leave a Comment

Cancel reply

Your email address will not be published.