From 3090b344d85fb8d99253af10165d9e6df9c4a304 Mon Sep 17 00:00:00 2001 From: Sascha Wagner Date: Sun, 31 Jan 2016 16:44:14 +0100 Subject: [PATCH] Strip HTML tags from title (cherry picked from commit 79314426a4e3a4142c3ed2907839a03fed6f972c) Signed-off-by: Sascha Wagner --- templates/article.html | 2 +- templates/partial/og_article.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/article.html b/templates/article.html index ae24ec3..ddeadf7 100644 --- a/templates/article.html +++ b/templates/article.html @@ -7,7 +7,7 @@ {% include "partial/og_article.html" %} {% endblock %} -{% block title %} – {{ article.title }}{% endblock %} +{% block title %} – {{ article.title|striptags }}{% endblock %} {% block content %}
diff --git a/templates/partial/og_article.html b/templates/partial/og_article.html index 50d4df3..4e46494 100644 --- a/templates/partial/og_article.html +++ b/templates/partial/og_article.html @@ -4,7 +4,7 @@ {% set default_locale = 'en_US' %} {% endif %} - +