Is there a way for me to save or download a .svg file from the DOM? I have integrated my svg file into an Object element and am dynamically updating certain elements within the SVG and customizing it in my Angular 7 application.
<object id="svg1" data="assets/10026_019.svg" type="image/svg+xml" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"></object>
<button (click)="downloadSVG()">Download SVG file</button>
Once I make changes to the SVG, I would like to be able to save or download the entire content as a .svg file. Are there any other alternatives available for downloading the updated SVG file?