{"version":"1.0","type":"rich","title":"unescape hex entities in html","description":"This example demonstrates how to unescape HTML entities using Python's `sgmllib` and `htmlentitydefs` modules. It converts named and numeric character references (like `&amp;`, `&#169;`) into their corresponding Unicode characters, with special handling for common typographic entities (e.g., `&rsquo;`, `&copy;`) that are mapped to ASCII approximations when the `UNICODE_SNOB` flag is disabled. The code includes support for hex and decimal character references, handles unknown entities gracefully, and integrates entity unescaping into HTML attribute parsing. A companion `openanything.py` module provides a flexible HTTP/file/string input stream opener.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-971949?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}