From f932d983ed7f264e1de21db561b4305aee1ebf6f Mon Sep 17 00:00:00 2001 From: LeeW Date: Wed, 21 Jun 2017 23:22:05 +0800 Subject: [PATCH] Add striptags to article title * Fix page break when upper letters are using (e.g. HTML) --- templates/article.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/article.html b/templates/article.html index c5dc9dc..fa5c53a 100644 --- a/templates/article.html +++ b/templates/article.html @@ -1,5 +1,5 @@ {% extends "base.html" %} -{% block title %}{{ article.title }}{% endblock %} +{% block title %}{{ article.title|striptags }}{% endblock %} {% block head %} {{ super() }} @@ -29,7 +29,7 @@ {% for name,link in SOCIAL if name in ['twitter'] %} - + {% if article.twitter_image %} {% if article.twitter_image|lower|truncate(4, True, '') == "http" %} @@ -61,7 +61,7 @@ {% endfor %} - + {% if description %} @@ -101,7 +101,7 @@
-

{{ article.title }}

+

{{ article.title|striptags }}

{% if article.headline %}

{{ article.headline }}

{% endif %}