diff options
author | Stefan Ritter <xeno@thehappy.de> | 2010-03-10 15:33:58 +0100 |
---|---|---|
committer | Stefan Ritter <xeno@thehappy.de> | 2010-03-10 15:33:58 +0100 |
commit | e377f73f70c37ad5cd73afbd083f695f3af28fee (patch) | |
tree | f661e9136c425551377bd6369b177d3f808cac65 | |
parent | d5eb376dd352fad52090be922307ac461ebf5b36 (diff) |
Replace some HTML-Codes
-rwxr-xr-x | wnpp-query.py | 4 |
1 files changed, 4 insertions, 0 deletions
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] + |