"""HTML page generation helpers for ``html_page`` scheduled tasks. Pure, dependency-light utilities the scheduler uses to turn a GLM5 response into a safe, previewable HTML document: - :func:`extract_json_object` — fault-tolerant JSON extraction from a model reply that may be wrapped in prose or ```json fences. - :func:`sanitize_html` — strip script-execution vectors (``