I have variable which contains a svg string which look like,
var svgEle = "<svg width="100" height="100">
<circle cx="50" cy="50" r="40" stroke="green" stroke-width="4" fill="yellow" />
</svg>"
I want to convert this into .svg file object in JavaScript in order to pass that object to another method.
Is there a way of doing this