aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views.py
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2014-01-27 11:00:28 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2014-01-27 11:00:28 +0100
commit524d7811c8ba66b1756a1f599dd894e04c6b8cf9 (patch)
tree42c32d184907ca159c76dd44adb5be75c480082c /pyaggr3g470r/views.py
parentImproved /inactives template. (diff)
downloadnewspipe-524d7811c8ba66b1756a1f599dd894e04c6b8cf9.tar.gz
newspipe-524d7811c8ba66b1756a1f599dd894e04c6b8cf9.tar.bz2
newspipe-524d7811c8ba66b1756a1f599dd894e04c6b8cf9.zip
explicitly mark a string as safe HTML with |safe
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r--pyaggr3g470r/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py
index 5e68febb..e2832500 100644
--- a/pyaggr3g470r/views.py
+++ b/pyaggr3g470r/views.py
@@ -160,7 +160,7 @@ def feed(feed_id=None):
average = 0
elapsed = today - last_article
- return render_template('feed.html', head_title=feed.title, feed=feed, tag_cloud=tag_cloud, \
+ return render_template('feed.html', head_title=utils.clear_string(feed.title), feed=feed, tag_cloud=tag_cloud, \
first_post_date=first_article, end_post_date=last_article , \
average=average, delta=delta, elapsed=elapsed)
@@ -175,7 +175,7 @@ def article(article_id=None):
if not article.readed:
article.readed = True
article.save()
- return render_template('article.html', head_title=article.title, article=article)
+ return render_template('article.html', head_title=utils.clear_string(article.title), article=article)
@app.route('/mark_as_read/', methods=['GET'])
@login_required
bgstack15