Message112570
And while we're at it, we should also
.replace('&', '&').replace('"', """).replace('<', '<')
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, {'"':'"', '\r':'
', '\n':'
', '\t':'	'})
which also escapes '>' (not strictly required for attribute values, but shouldn't be harmful either). |
|
Date |
User |
Action |
Args |
2010-08-03 10:32:04 | labrat | set | recipients:
+ labrat, effbot, ajaksu2, ezio.melotti, Tomalak, devon, moriyoshi, BreamoreBoy |
2010-08-03 10:32:04 | labrat | set | messageid: <1280831524.19.0.422574703523.issue5752@psf.upfronthosting.co.za> |
2010-08-03 10:32:03 | labrat | link | issue5752 messages |
2010-08-03 10:32:02 | labrat | create | |
|