summaryrefslogtreecommitdiff
path: root/lib/extensions/input.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2023-12-29 17:00:41 +0100
committerGitHub <noreply@github.com>2023-12-29 17:00:41 +0100
commitfd01c2e2f1b9bfb972377492c7769b6b62170193 (patch)
treefff515f83c8d5a8f91ac7476224d9cec3d70e76f /lib/extensions/input.py
parent3f37c05a7d411412faa521d1c3b9dd59b426725f (diff)
Stitch plan: escape labels (#2644)
Diffstat (limited to 'lib/extensions/input.py')
-rw-r--r--lib/extensions/input.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/extensions/input.py b/lib/extensions/input.py
index 4240be0e..3bcbb5a2 100644
--- a/lib/extensions/input.py
+++ b/lib/extensions/input.py
@@ -3,9 +3,10 @@
# Copyright (c) 2010 Authors
# Licensed under the GNU GPL version 3.0 or later. See the file LICENSE for details.
-from lxml import etree
+from html import unescape
from inkex import errormsg
+from lxml import etree
from ..i18n import _
from ..stitch_plan import generate_stitch_plan
@@ -20,4 +21,4 @@ class Input(object):
errormsg(msg)
exit(0)
stitch_plan = generate_stitch_plan(embroidery_file)
- print(etree.tostring(stitch_plan).decode('utf-8'))
+ print(unescape(etree.tostring(stitch_plan).decode('utf-8')))