summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Ritter <xeno@thehappy.de>2010-03-10 15:33:58 +0100
committerStefan Ritter <xeno@thehappy.de>2010-03-10 15:33:58 +0100
commite377f73f70c37ad5cd73afbd083f695f3af28fee (patch)
treef661e9136c425551377bd6369b177d3f808cac65
parentd5eb376dd352fad52090be922307ac461ebf5b36 (diff)
Replace some HTML-Codes
-rwxr-xr-xwnpp-query.py4
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('&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]
+