toHtml

fun toHtml(name: String, customisations: IconifyIconCustomisations? = definedExternally): String?

Generate an SVG string for an icon.

Returns null if the icon cannot be resolved. Without customisations, width and height default to auto.