Decode HTML named and numeric character references into Unicode text.
Named, decimal, and hexadecimal references become code points according to HTML tokenizer rules. Invalid or ambiguous references follow browser error recovery rather than strict XML behavior.
<h1>Hello & World</h1> © 2025
<h1>Hello & World</h1> © 2025
Scrapers, CMS previews, and escaped-markup tests decode entities.