converting <svg> element to a file object in JavaScript
<p>I have variable which contains a svg string which look like, </p>

<pre><code>var svgEle = "&lt;svg width="100" height="100"&gt;
&lt;circle cx="50" cy="50" r="40" stroke="green" stroke-width="4"     fill="yellow" /&gt;
&lt;/svg&gt;"
</code></pre>

<p>I want to convert this into .svg file object in JavaScript in order to pass that object to another method.</p>

<p>Is there a way of doing this</p>