I'm using Inkscape to create my SVG files an then I edit the XML to to some stuff with Javascript.
If I embed Js into the document, and then I edit it again with Inkscape, save the doc and it clean up my Javascript
The CDATA around my code is removed and all double quotes are replaced by their HTML entities.
For example, if I add the following code to a SVG doc:
Code: Select all
<script type="text/ecmascript"><![CDATA[
alert("test");
]]></scrip>
after an edition with Inkscape I have
Code: Select all
<script type="text/ecmascript">
alert("test");
</scrip>
Did somebody has the same issue? Is there some configuration to avoid that?
For informations, I'm running Inkscape 0.47 on Ubuntu 10.04
Thanks a lot