Encoders / Escapers / Crypto
HTML Escape
Escape / unescape special HTML characters.
HTML0 chars
HTML (escaped)
Guide & explanation
HTML Escape replaces characters that are special in HTML with entities so they render as plain text instead of being interpreted as markup. It is also a basic step toward preventing XSS when placing data into a page.
Mapping
| Character | Entity |
|---|---|
& | & |
< | < |
> | > |
" | " |
' | ' |
Example
<a href="x">Tom & Jerry</a>
becomes
<a href="x">Tom & Jerry</a>
The Unescape mode reverses the process, including common named entities and numeric references like © or ©.