Parse and sanitize SVG content safely, removing scripts and event handlers.
The raw SVG string to sanitize. Null or undefined returns null.
The sanitized SVGElement, or null if parsing fails or content is invalid.
SVGElement
Strips script, foreignObject, on* handlers, and javascript: hrefs from external SVG content.
Parse and sanitize SVG content safely, removing scripts and event handlers.