Remove unnecessary escaping for single quote

When writing XML text with XML library, single quote will not be
escaped. So remove the escaping for single quote in current tool.

Signed-off-by: Wen Liang <liangwen12year@gmail.com>
This commit is contained in:
Wen Liang 2021-05-17 09:56:51 -04:00 committed by Thomas Haller
parent f6e52708a2
commit 403d776730
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

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