Escape text so it shows as text inside HTML, or turn entities such as &, é and © back into the characters they stand for.
| Character | Entity |
|---|---|
& | & |
< | < |
> | > |
" | " |
' | ' |
Escaping these five is enough to put any text safely inside HTML. Tick Also encode every non-ASCII character if the page’s encoding isn’t UTF-8, or for email.
Yes: it uses your browser’s own HTML parser, which knows all 2,231 named entities, as well as numeric ones like 😀.
For text inside HTML elements, yes. Inside attributes, URLs, scripts or CSS, different rules apply: use your framework’s escaping for each place.
Open all 35 Dev Tools. Everything runs in your browser; nothing you paste is uploaded.