From b04e9ce805e994c59d568da7e7b94f342bd1e3bf Mon Sep 17 00:00:00 2001 From: Mark MacKay Date: Wed, 2 Jun 2021 19:05:23 -0500 Subject: [PATCH] tweak --- src/js/svgcanvas.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }