Hi there!
I´m integrating bpm js with my application and when i use de saveSVG funcionality, the downloaded SVG display some Unescaped double quote that makes the SVG invalid:
<path d="m 65,65L125,125 " style="fill: none; stroke-width: 2px; stroke: black; stroke-linejoin: round; marker-end: url("#sequenceflow-end");"/>
If i edit the file and change url("#sequenceflow-end") to url(’#sequenceflow-end’) (single quote) the file gets ok again.
My code is:
if (expButton){
expButton.bind('click', function() {
viewer.saveSVG({}, function(err, svg) {
alert(err);
if (svg) {
var encodedData = encodeURIComponent(svg);
expButton.attr({
href: 'data:application/bpmn20-xml;charset=UTF-8,' + encodedData,
download: 'imagem.svg'
});
}
});
});
}
Any ideas?
Thanks!