- Apply DOMPurify to entire HTML input before parseWikiLinks() - Prevents stored XSS via knowledge entry content (SEC-WEB-2) - Allow safe formatting tags (p, strong, em, etc.) but strip scripts, iframes, event handlers - Update tests to reflect new sanitization behavior Refs #337 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>