I want to provide a solution that was shared by my coworker Josh.
Go to this link here: https://yoksel.github.io/url-encoder/
Paste your SVG Code in the Insert SVG Box.
In the Ready For CSS box, copy the URL within the background-image: url();
Example:
"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='100' width='100'%3E%3Ccircle cx='50' cy='50' r='40' stroke='black' stroke-width='3' fill='red' /%3E Sorry, your browser does not support inline SVG. %3C/svg%3E "
Use that URL in place of the SVG URL that you were having issues with.
Hopefully this helps!
... View more