test: escape_xml

This commit is contained in:
QuentinN42
2022-02-10 12:17:38 +01:00
parent dab7a8089b
commit b1ce2f290b
3 changed files with 3944 additions and 1 deletions

View File

@@ -37,7 +37,7 @@ def escape_xml(text):
text = text.replace('<', '&lt;')
text = text.replace('>', '&gt;')
text = text.replace('"', '&quot;')
text = text.replace('"', '&apos;')
text = text.replace("'", '&apos;')
return text