{% svg ... %} adds an extra XML declaration
amyspark opened this issue · 1 comments
amyspark commented
When I embed a svg using this gem,
<span class="amyspark-footer-cc">{% svg "_includes/cc-by-sa.svg" %}</span>
I get the following in the source code:
<span class="amyspark-footer-cc"><?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg" version="1.0" viewbox="0 0 80 15">
...snip...
</svg>
</span>
The <?xml
bit is added by Nokogiri.
Would it be possible to remove the XML declaration, as suggested in this Stack Overflow question?
Thanks so much for your work!
sdumetz commented
should be fixed in V1.1.2.
Thanks for reporting.