//#region src/lib/sanitize-svg.d.ts /** * SECURITY: Strip script-bearing constructs from an SVG string before it is * passed to `dangerouslySetInnerHTML` (e.g. via ``). * * This is an allowlist-leaning scrubber that closes the documented XSS * vectors. It assumes the caller produced the SVG from a Mermaid render (or * equivalent server-side renderer) and provides defense-in-depth against: * * - `