Whitelist-based PHP SVG sanitizer.
<?php // load require_once('SvgSanitizer.php'); $svg = new SvgSanitizer(); // load SVG $svg->load("evil.svg"); // sanitize! $svg->sanitize(); // Print out sanitized SVG echo $svg->saveSVG(); ?>
MIT