WHATWG HTML5 Entity Decoding, Recursive Multi-Pass Un-nesting, & Semicolon Auto-Repair
HTML entity decoding converts character references back into plain text characters or raw markup. The WHATWG HTML Living Standard defines 2,231 named character references along with decimal and hexadecimal numeric entities.
Comparing HTML Entity Formats & Decoded Outputs
| Format Type | Encoded Input | Decoded Output |
|---|---|---|
| Named HTML5 Entity | © € ™ < | © € ™ < |
| Decimal Numeric Entity | © € < | © € < |
| Hexadecimal Entity | © € < | © € < |
| Double-Encoded Entity | &lt;p&gt; | <p> (Pass 1) → <p> (Pass 2) |
| Semicolon-less Legacy Entity | © 2026 Acme & Co | © 2026 Acme & Co |
Handling Double Encoding & Legacy Semicolon Omissions
Legacy databases and scraped web pages often contain entities missing trailing semicolons (e.g. © 2026). Furthermore, multi-tier architectures often produce double-encoded payloads like &lt;. Our HTML Decoder automatically handles multi-pass recursive un-nesting and permissive semicolon auto-repair.
100% Local Browser Privacy & Security
Encoded HTML input payloads often contain private text or API log traces. Our HTML Decoder operates 100% locally in your web browser using JavaScript Web Workers. Zero text data leaves your device.