DEV Community

Using a string of SVG text as an image source

Benjamin Black on September 13, 2018

My posts are usually notes and reference materials for myself, which I publish here with the hope that others might find them useful. TL;DR: le...
Collapse
 
stereobooster profile image
stereobooster

Second option would be data:image/svg+xml, and encodeURIComponent. See codepen.io/tigt/post/optimizing-sv...

Collapse
 
chandra profile image
Chandra Prakash Tiwari

Blob is not defined in Node.js file?? Any Suggestions?

Collapse
 
hayesmaker profile image
hayesmaker

This is code designed to run in the browser, not in Node.