If I have some svg passed through assign to the view on say an svg variable, I can render into the view with:
<%= @svg %>
However, in the DOM I can inspect the page and see intelligently phoenix has default to not rendering the SVG, as it's a string representation. However, I can't figure out how to override that default so that I can inject into the dom/render the SVG properly and not just show the string in the page, but actually render the image. How would I do this? Do I have to use javascript to render after the fact—that's okay too but it would be really nice to just server side render.
Thank so much!