Skip to content

Commit 3523f46

Browse files
committed
Use 'html' method for string creation
1 parent 6508bbb commit 3523f46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sphinxcontrib/email/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def rot_13_encrypt(self, line: str) -> str:
3030
def xml_to_unesc_string(self, node: ET.Element) -> str:
3131
"""Return unescaped xml string"""
3232
text = xml.sax.saxutils.unescape(
33-
ET.tostring(node, encoding="unicode", method="xml"),
33+
ET.tostring(node, encoding="unicode", method="html"),
3434
{"'": "'", """: '"'},
3535
)
3636
return text

0 commit comments

Comments
 (0)