35 $sanitizer =
new Sanitizer();
36 $dirtySVG = file_get_contents($a_file);
37 $cleanSVG = $sanitizer->sanitize($dirtySVG);
38 file_put_contents($a_file, $cleanSVG);
47 $path = realpath($a_path);
50 foreach ($objects as $name => $object) {
51 if (strtolower(pathinfo($name, PATHINFO_EXTENSION)) ==
"svg") {
52 self::sanitizeFile($name);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...