replaceIDs

external fun replaceIDs(body: String): String

Replace IDs in an SVG body with unique IDs, updating their references.

Prevents collisions when multiple icons are embedded in the same document. The counter cache is global; call clearIDCache to reset it.

Return

the body with replaced IDs, or body unchanged when it contains no IDs.