title: Is it possible to download the contents of a div into an SVG file?
body: <p>I would like to create an SVG file from a <code>div</code>. For example, the following
  Produces this &quot;image&quot;, which I would like to download in an SVG format.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.div1 {
    margin: 10px auto 20px auto;
    width: 90%;
    text-align: center;
  }
  
  #div2 {
    font-size: 90px;
    border: 5px solid black;
    border-radius: 15px;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-bottom: 30px;
    max-width: 350px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="div1" id="div2"&gt;
    TEXT
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>