HTML Entity Encoding ReferenceStandards for reserved HTML characters, entity formats, and XSS prevention.
Human-readable mnemonic entity names defined in HTML specifications.
&, <, >, ", '
Unicode code point encoded in base-10 decimal format with &# prefix.
& for &, < for <
Unicode code point encoded in hexadecimal format with &#x prefix.
& for &, < for <
Five fundamental XML/HTML characters that alter DOM hierarchy if unescaped.
& < > " '
Attribute values, text nodes, and scripts require distinct escaping strategies.
Text vs href vs onclick
Transcodes international Unicode glyphs, accents, and currency symbols.
©, €, —