What you want is the rendered version of the Svg.
I don't think that's available in Elm yet.
however, can get the rendered version my doing a round trip through JS
*after* you have rendered the svg.
here is a quick demo on how to do this:
If you don't want the Svg to be visible while you do this, you can add a
hidden attribute to the div that is hosting the Svg.
On Wed, Oct 12, 2016 at 12:27 AM, Alexander Klink <alexan...@klink.name>
> in elm-lsystems (see http://0x90.eu/ls/ and https://git.alech.de/alech/
> I render an inline SVG. I would like the user to be able to download this
> SVG, for
> example by providing a link to a data:-URI of the content.
> For this, I would need a function that converts the given Svg into a
> String, but
> I couldn't find anything ... Ideas anyone?
> You received this message because you are subscribed to the Google Groups
> "Elm Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to elm-discuss+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
There is NO FATE, we are the creators.
You received this message because you are subscribed to the Google Groups "Elm
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/d/optout.