Skip to content

Commit

Permalink
Strip HTML tags from title
Browse files Browse the repository at this point in the history
  • Loading branch information
sashw committed Jan 31, 2016
1 parent eb5b300 commit 7931442
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{% include "partial/og_article.html" %}
{% endblock %}

{% block title %} – {{ article.title }}{% endblock %}
{% block title %} – {{ article.title|striptags }}{% endblock %}

{% block content %}
<article>
Expand Down
2 changes: 1 addition & 1 deletion templates/partial/og_article.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{% set default_locale = 'en_US' %}
{% endif %}
<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:locale" content="{{ article.metadata.get('og_locale', default_locale) }}"/>
<meta property="og:url" content="{{ SITEURL }}/{{ article.url }}"/>
Expand Down

0 comments on commit 7931442

Please sign in to comment.