Strip HTML tags from title

(cherry picked from commit 79314426a4e3a4142c3ed2907839a03fed6f972c)
Signed-off-by: Sascha Wagner <sascha.wagner.89@gmail.com>
This commit is contained in:
Sascha Wagner 2016-01-31 16:44:14 +01:00
parent 17e24acc70
commit 3090b344d8
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@
{% include "partial/og_article.html" %} {% include "partial/og_article.html" %}
{% endblock %} {% endblock %}
{% block title %} &ndash; {{ article.title }}{% endblock %} {% block title %} &ndash; {{ article.title|striptags }}{% endblock %}
{% block content %} {% block content %}
<article> <article>

View file

@ -4,7 +4,7 @@
{% set default_locale = 'en_US' %} {% set default_locale = 'en_US' %}
{% endif %} {% endif %}
<meta property="og:site_name" content="{{ SITENAME }}"/> <meta property="og:site_name" content="{{ SITENAME }}"/>
<meta property="og:title" content="{{ article.title }}"/> <meta property="og:title" content="{{ article.title|striptags }}"/>
<meta property="og:description" content="{{ article.summary|striptags }}"/> <meta property="og:description" content="{{ article.summary|striptags }}"/>
<meta property="og:locale" content="{{ article.metadata.get('og_locale', default_locale) }}"/> <meta property="og:locale" content="{{ article.metadata.get('og_locale', default_locale) }}"/>
<meta property="og:url" content="{{ SITEURL }}/{{ article.url }}"/> <meta property="og:url" content="{{ SITEURL }}/{{ article.url }}"/>