Stripping active content, keeping the visible shape
An SVG containing a tag and an onclick="x()" attribute on a
This matters because SVG is XML, and XML can embed executable JavaScript directly -- a
Free · Instant · No signup
Strip script tags and on* attributes from SVG markup for safer inline use.
Page updated 2026-09-04.
An SVG containing a tag and an onclick="x()" attribute on a
This matters because SVG is XML, and XML can embed executable JavaScript directly -- a