From af56ffb49c3af2309aee4aa50f88846dd861eea4 Mon Sep 17 00:00:00 2001 From: Luca Chiricozzi Date: Tue, 30 Dec 2014 21:42:05 +0100 Subject: [PATCH] Stripped tags from summary --- templates/article.html | 2 +- templates/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/article.html b/templates/article.html index 0a71f60..a1ba533 100644 --- a/templates/article.html +++ b/templates/article.html @@ -27,7 +27,7 @@

{{ article.title }}

-

{{ article.summary }}

+

{{ article.summary|striptags }}

{% if SHARE %} Share diff --git a/templates/index.html b/templates/index.html index 8ee2a3f..2610ba8 100644 --- a/templates/index.html +++ b/templates/index.html @@ -10,7 +10,7 @@ {{ article.title }}

-

{{ article.summary }}

+

{{ article.summary|striptags }}

{{ ' '.join(article.content.split(' ')[0:100])|striptags }}...

Read More