Url Encode For Svg. SVG must have attribute xmlns like this. Made by mathias fork this on GitHub.
If encode SVG using encodeURIComponent it will work everywhere. URL ENCODE YOUR SVG As others have suggested you need to URL encode your entire SVG string for it to work in IE11. Then one dont have to encode or escape spaces and single quotes are ok to use.
SVG must have attribute xmlns like this.
SVG must have attribute xmlns like this. AddEventListener load URL. If encode SVG using encodeURIComponent it will work everywhere. Url data image svg xml svg nshttp.