After loading svg with xlink:href='url("#test")', svgGetString returns
xlink:href="url("#test")". So, output string cannot be re-loaded.
utilities.toXml uses jQuery html() to escaping characters, but it won't convert
" to &qut;.
so toXml should be such as:
svgedit.utilities.toXml = function(str) {
var x = $('<p/>').text(str).html();
while (x.indexOf('"') != -1)
x = x.replace('"', '"');
return x;
};
toXml seems to be used to escape attribute value, text value, layer name in
svgcanvas.
Original issue reported on code.google.com by psh....@gmail.com on 25 Jan 2014 at 6:28
Original issue reported on code.google.com by
psh....@gmail.com
on 25 Jan 2014 at 6:28