Generating SVG from SVG string within plugin

I have an icon library that exports SVG strings. Is there a way for me to paste the string into Figma through my plugin or would I have to manually build the graphic myself? If it’s the latter how would you recommend approaching this?

Thank you so much! I can’t believe I missed that when I was going through the docs.

I took a look and found out that createNodeFromSVG isn’t in the documentation’s sidebar and that’s why I didn’t see it.

Here’s a screenshot for reference: