From b4bb0655fe1baff718b51c2df73f40ea3f9b6862 Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Wed, 1 Jun 2011 20:27:06 +0200 Subject: Minor improvements: 1) encoding of article description and article title, 2) HTML sanitization. --- pyAggr3g470r.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pyAggr3g470r.py') diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py index 67beea86..3e26326b 100755 --- a/pyAggr3g470r.py +++ b/pyAggr3g470r.py @@ -180,7 +180,7 @@ class Root: # Descrition for the CSS ToolTips article_content = utils.clear_string(article.article_description) if article_content: - description = " ".join(article_content[:500].split(' ')[:-1]) + description = " ".join(article_content.split(' ')[:55]) description = str(BeautifulSoup(description)) else: description = "No description." -- cgit