Result
Why Encode HTML Entities?
If you paste raw HTML code like <div> into a website comments section or a blog post, the browser will try to render it as an actual element. To display the code itself, you must convert the special characters into HTML Entities.
Common Conversions
| Character | Entity Name | Usage |
|---|---|---|
< |
< |
Opening Bracket |
> |
> |
Closing Bracket |
& |
& |
Ampersand |