From aa135653e325dc596c56e62aae574a4eea5ae373 Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Thu, 25 Aug 2011 22:17:31 +0200 Subject: HTML tags between tags are now escaped by a regular expression. --- css/style.css | 3 ++- feedgetter.py | 2 +- pyAggr3g470r.py | 6 ++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/css/style.css b/css/style.css index ebb571a0..5f9574e7 100755 --- a/css/style.css +++ b/css/style.css @@ -14,7 +14,8 @@ body { } code, pre { - font-size: 100%; + font: 400 0.85em Cambria, Georgia, "Trebuchet MS", Verdana, sans-serif, Fixed; + white-space:pre-wrap; } img { diff --git a/feedgetter.py b/feedgetter.py index f60286e7..9e65e385 100755 --- a/feedgetter.py +++ b/feedgetter.py @@ -135,7 +135,7 @@ class FeedGetter(object): article_title = str(BeautifulSoup(article.title)) try: - post_date = datetime(*article.updated_parsed[:6]) + post_date = datetime(*article.updated_parsed[:6]) except: post_date = datetime(*article.published_parsed[:6]) diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py index c79f3059..b6ecb8d7 100755 --- a/pyAggr3g470r.py +++ b/pyAggr3g470r.py @@ -460,6 +460,12 @@ class Root: # Description (full content) of the article description = article.article_description if description: + p = re.compile(r'<') + q = re.compile(r'>') + + description = p.sub('<', description) + description = q.sub('>', description) + html += description + "\n


" else: html += "No description available.\n


" -- cgit