removeBadAttributes

external fun removeBadAttributes(svg: SVG)

Remove useless attributes from all elements.

Removes event handlers, junk and editor-specific attributes, namespaced attributes (xlink:href becomes href), and all attributes on <defs> that are not tag-specific.