diff --git a/comfy_extras/nodes_images.py b/comfy_extras/nodes_images.py
index 7a3c26b20..77c305619 100644
--- a/comfy_extras/nodes_images.py
+++ b/comfy_extras/nodes_images.py
@@ -266,14 +266,18 @@ class SaveSVGNode:
if metadata_json:
# Create metadata element with CDATA section
metadata_element = f"""
-
-
-"""
- # Insert metadata after opening svg tag using regex
- # import re # Already imported at the top
- svg_content = re.sub(r'(