cleanupSVG

external fun cleanupSVG(svg: SVG, options: CleanupSVGOptions? = definedExternally)

Clean up an SVG before parsing or optimising it.

Runs, in order: cleanupInlineStyle, convertStyleToAttrs, cleanupSVGRoot, checkBadTags, removeBadAttributes and cleanupRootStyle.

Bad or unsupported elements make checkBadTags throw an exception. options only contains CleanupSVGOptions.keepTitles.