diff --git a/src/js/svgcanvas.js b/src/js/svgcanvas.js index 63f8ff4..cfeeaec 100644 --- a/src/js/svgcanvas.js +++ b/src/js/svgcanvas.js @@ -5844,7 +5844,7 @@ this.setSvgString = function(xmlString) { // grab the first tspan and apply it to the text element svgedit.sanitize.svgWhiteList()["text"].forEach(attr => { const value = tspan.getAttribute(attr); - if (value) { + if (value && attr !== "id" && !attr.includes(":")) { tspan.removeAttribute(attr); text.setAttribute(attr, value); }