From b5141e7d13b9cc8e70143ddeb05e16affe8c0ba7 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 2 Aug 2010 19:35:09 -0400 Subject: [PATCH] Also escape quotes (") in minidom's _write_data. --- hooke/compat/minidom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2