Encode text to HTML entities and decode them back. Protect your code from XSS and display special characters correctly.
HTML entities are codes used to represent characters that have special meaning in HTML or that aren't easily typed on a keyboard. They help prevent XSS attacks and ensure special characters display correctly.
| Character | Entity Name | Decimal | Hexadecimal |
|---|---|---|---|
| < | < | < | < |
| > | > | > | > |
| & | & | & | & |
| " | " | " | " |
| © | © | © | © |
| ® | ® | ® | ® |
| € | € | € | € |
| ™ | ™ | ™ | ™ |