From e377f73f70c37ad5cd73afbd083f695f3af28fee Mon Sep 17 00:00:00 2001 From: Stefan Ritter Date: Wed, 10 Mar 2010 15:33:58 +0100 Subject: Replace some HTML-Codes --- wnpp-query.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wnpp-query.py b/wnpp-query.py index 7245b40..d0157bb 100755 --- a/wnpp-query.py +++ b/wnpp-query.py @@ -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('&', '&', entry[2]) + entry[2] = re.sub('"', '"', entry[2]) + entry[2] = re.sub(''', '\'', entry[2]) print entry[3], 'days ago:', entry[1], entry[0], entry[2] + -- cgit v1.2.3