aboutsummaryrefslogtreecommitdiff
path: root/pyAggr3g470r.py
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2011-06-01 20:27:06 +0200
committercedricbonhomme <devnull@localhost>2011-06-01 20:27:06 +0200
commitb4bb0655fe1baff718b51c2df73f40ea3f9b6862 (patch)
treea5d133afec66ddb22ab5291c5c6c30c92e264f1e /pyAggr3g470r.py
parentRemoved useless code in utils.py. Improvement of the CSStoopTip description. (diff)
downloadnewspipe-b4bb0655fe1baff718b51c2df73f40ea3f9b6862.tar.gz
newspipe-b4bb0655fe1baff718b51c2df73f40ea3f9b6862.tar.bz2
newspipe-b4bb0655fe1baff718b51c2df73f40ea3f9b6862.zip
Minor improvements: 1) encoding of article description and article title, 2) HTML sanitization.
Diffstat (limited to 'pyAggr3g470r.py')
-rwxr-xr-xpyAggr3g470r.py2
1 files changed, 1 insertions, 1 deletions
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."
bgstack15