OPM / opm-reference-manual

Other
1 stars 5 forks source link

Escape quotes and apostrophes when writing XML files with the Python scripts #170

Closed hakonhagland closed 7 months ago

hakonhagland commented 7 months ago

xml.sax.saxutils.escape() escapes only the three characters &, <, and >. But LibreOffice also escapes the characters " and '. So we should escape them as well in order not to get large PR diffs each time a Python script is modifying the XML files. Or each time LibreOffice is modifying an XML file that was previously written by a Python script.