title: Angular: Load SVG from path and stringify it
body: <p>I need to load an svg file from the assets folder and stringify the content. Can't find any solution int the web but here is my approach. </p>
  
  <pre><code>    let svg = await this.httpClient.get(`assets/images/result/${this.icon}.svg`)
  .pipe(
        map(res =&gt; {
          const serializer = new XMLSerializer();
          const svgString = serializer.serializeToString(&lt;any&gt;res);
        })
      ).toPromise();
  </code></pre>