User talk:Aarchiba/SVG sanitizer

License?
Heya,

This looks awesome. What license is it under? Maybe we could use it for MediaGoblin...

--Cwebber (talk) 17:53, 12 May 2013 (UTC)

Best pracices via DTD?
The best way to do a SVG sanitizer is to create a custom DTD with no event tags or script tags, and then validate against the DTD. That way you only allow known safe tags, as opposed to trying to eliminate unsafe tags. Jrincayc 12:35, 24 August 2005 (UTC)

Illegal xml
After fixing the following file (by adding a xmlns:xlink="http://www.w3.org/1999/xlink" declaration to the root svg element), your script seems to transform it into illegal XML with elements from namespaces which have been removed:

http://wiki.services.openoffice.org/twiki/pub/Main/SVGUserExperiences/Topologyanon.svg

-- Hauix 12:38, 7 October 2005 (UTC).

XSLT?
Just an (incomplete) idea:        &lt;!-- etc. --&gt;       Could even get the client itself to do the sanitizing by putting a processor instruction at the beginning of the SVG. —Fleminra 06:17, 29 January 2006 (UTC)