// ============================================================================= // html.ts — Shared HTML utilities (shared between intent and docs loaders) // ============================================================================= // // Single source of truth for parsing `.html`/`.htm` intent docs and for // stripping HTML tags from arbitrary text. Previously duplicated in // intent.ts and docs.ts — extracting here lets the test suite cover // one parser instead of two, and prevents drift. // // Public API: // - stripHtml(html) — strip tags + decode common entities // - extractHtmlMeta(html) — pull