Skip to content

Commit b436420

Browse files
committed
feat: add an intresting case for test failure
1 parent 343c379 commit b436420

File tree

5 files changed

+91
-3
lines changed

5 files changed

+91
-3
lines changed

.coverage

0 Bytes
Binary file not shown.

json2xml/dicttoxml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def make_attrstring(attr: dict[str, Any]) -> str:
127127
Returns:
128128
str: The string of XML attributes.
129129
"""
130-
attrstring = " ".join([f'{k}="{v}"' for k, v in attr.items()])
130+
attrstring = " ".join([f'{k}="{escape_xml(v)}"' for k, v in attr.items()])
131131
return f'{" " if attrstring != "" else ""}{attrstring}'
132132

133133

0 commit comments

Comments
 (0)