title: Button to download inpage SVG code as an SVG file?
body: <p>Given end users who don't want to inspect the code of D3js visualisations, nor copy-paste, etc.</p>
  
  <p>Given a D3 <code>&lt;svg&gt;</code> element with all shapes and styles within itself (not within any external CSS). </p>
  
  <p><strong>Is there a library/code which allow this end user to click on a button to download the code as a standalone SVG file.</strong> </p>
  
  <p>The file should be valid to be opened with Inkscape and other SVG compliant softwares. This allow and empower the end user to fork the file, open it into an SVG editor and make some more advanced designs on it.</p>