splitSVGDefs

external fun splitSVGDefs(content: String, tag: String = definedExternally): SplitSVGDefsResult

Extract non-nestable definitions, such as masks and clip paths, from SVG content.

Should only be used with tags that cannot be nested.

Return

the extracted definitions and the remaining content.

Parameters

tag

tag name to extract; defaults to "defs".