title: How to Convert svg link into svg tag
body: <p>I have an link which has the svg file with the format of svg .
  <a href="https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/AJ_Digital_Camera.svg" rel="nofollow noreferrer">svgfilelink</a></p>
  <p>And this link has the following content :</p>
  <pre><code>&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot; width=&quot;20px&quot; height=&quot;20px&quot; viewBox=&quot;0 0 20 20&quot; version=&quot;1.1&quot;&gt;
  &lt;title&gt;Rectangle Copy 14&lt;/title&gt;
  &lt;defs&gt;
      &lt;linearGradient x1=&quot;5.7671933%&quot; y1=&quot;50.1613046%&quot; x2=&quot;99.3732272%&quot; y2=&quot;50.1613046%&quot; id=&quot;linearGradient-1&quot;&gt;
          &lt;stop stop-color=&quot;#59D08F&quot; offset=&quot;0%&quot;/&gt;
          &lt;stop stop-color=&quot;#26C2DC&quot; offset=&quot;100%&quot;/&gt;
      &lt;/linearGradient&gt;
  &lt;/defs&gt;
  &lt;g id=&quot;Page-1&quot; stroke=&quot;none&quot; stroke-width=&quot;1&quot; fill=&quot;none&quot; fill-rule=&quot;evenodd&quot;&gt;
      &lt;g id=&quot;06-Shapes-Properties&quot; transform=&quot;translate(-1166.000000, -354.000000)&quot; stroke=&quot;url(#linearGradient-1)&quot; stroke-width=&quot;2&quot;&gt;
          &lt;rect id=&quot;Rectangle-Copy-14&quot; x=&quot;1167&quot; y=&quot;355&quot; width=&quot;18&quot; height=&quot;18&quot;/&gt;
      &lt;/g&gt;
  &lt;/g&gt;
  </code></pre>
  
  <p>As of now I'm adding this link as src in <strong>img</strong> tag .
  But I need this link as svg format.
  I have tried few methods. But didn't help.
  Is there any possible ways to convert the url into <strong>svg</strong> tag in JAVASCRIPT?</p>