HTML Entity Encode / Decode
Convert special characters to HTML entities and vice versa. Prevent XSS and display HTML safely.
HTML Entity Reference
&→&
<→<
>→>
"→"
'→'
/→/
`→`
=→=
Why Encode HTML?
- Prevent XSS (Cross-Site Scripting) attacks
- Display HTML code as text on a webpage
- Safely store user input in databases
- Show special characters in HTML documents