load

fun load(content: String)

Parse and replace the SVG contents.

Removes comments, XML declarations, DOCTYPE, Adobe Illustrator junk and empty <g> elements before parsing. Requires exactly one <svg> root element and either a valid viewBox or both width and height; otherwise throws.