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.
Character | Replacement |
---|---|
& | & |
< | < |
> | > |
" | " |
' | ' (decimal code) or ' (hex code) |
Leave a Comment
Cancel reply