How this tool computes its result
Applies four sequential regex-based string replacements to pasted SVG markup: strips entire <script>...</script> blocks, strips entire <foreignObject>...</foreignObject> blocks, removes any inline event-handler attribute (on*="...") in both double- and single-quoted forms, and neutralizes javascript: URLs in href/xlink:href attributes by replacing them with "#". A separate lightweight check just verifies the pasted text contains a literal "<svg" substring (case-insensitive) and shows a warning if not, without blocking sanitization. The preview panel renders the sanitized output via dangerouslySetInnerHTML.
