Author labrat
Recipients BreamoreBoy, Tomalak, ajaksu2, devon, effbot, ezio.melotti, labrat, moriyoshi
Date 2010-08-03.10:32:02
SpamBayes Score 0.000150856
Marked as misclassified No
Message-id <>
And while we're at it, we should also

   .replace('&', '&amp;').replace('"', "&quot;").replace('<', '&lt;')

which would have to go at the beginning to avoid double-escaping the '&'.

We could use xml.sax.saxutils.escape to do all the escaping rather than chaining replaces:

   data = escape(data, {'"':'&quot;', '\r':'&#xD;', '\n':'&#xA;', '\t':'&#x9;'})

which also escapes '>' (not strictly required for attribute values, but shouldn't be harmful either).
Date User Action Args
2010-08-03 10:32:04labratsetrecipients: + labrat, effbot, ajaksu2, ezio.melotti, Tomalak, devon, moriyoshi, BreamoreBoy
2010-08-03 10:32:04labratsetmessageid: <>
2010-08-03 10:32:03labratlinkissue5752 messages
2010-08-03 10:32:02labratcreate