From: W. Trevor King Date: Mon, 2 Aug 2010 23:35:09 +0000 (-0400) Subject: Also escape quotes (") in minidom's _write_data. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=139877ceb5e748e1df4fd003b887b0ffb83c7a63;p=hooke.git Also escape quotes (") in minidom's _write_data. --- diff --git a/hooke/compat/minidom.py b/hooke/compat/minidom.py index 9d9f1a2..b9ff343 100644 --- a/hooke/compat/minidom.py +++ b/hooke/compat/minidom.py @@ -18,7 +18,7 @@ def _write_data(writer, data, isAttrib=False): "Writes datachars to writer." if isAttrib: data = data.replace("\r", " ").replace("\n", " ") - data = data.replace("\t", " ") + data = data.replace("\t", " ").replace('"', """) writer.write(data) xml.dom.minidom._write_data = _write_data