Replace some HTML-Codes

This commit is contained in:
Stefan Ritter 2010-03-10 15:33:58 +01:00
parent d5eb376dd3
commit e377f73f70

View file

@ -86,4 +86,8 @@ reports.sort(key = lambda x: int(x[3]))
for entry in reports:
if int(entry[3]) <= options.max_days_old \
and int(entry[3]) >= options.min_days_old:
entry[2] = re.sub('&amp;', '&', entry[2])
entry[2] = re.sub('&quot;', '"', entry[2])
entry[2] = re.sub('&#39;', '\'', entry[2])
print entry[3], 'days ago:', entry[1], entry[0], entry[2]