/** * Allowlist-based HTML sanitizer (#149). * * Two tiers: * - **lenient**: for authored/authorized content — allows structural, text, * table, list, and inline-style tags. Still strips script/iframe/object/on*. * - **strict**: for LLM-generated content — tighter tag set, no forms, and * link rewriting (all hrefs become in-app IE navigation). * * Both tiers strip: `