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. --- pyAggr3g470r.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pyAggr3g470r.py') 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