Skip to content

Commit

Permalink
Strip HTML tags from OpenGraph description.
Browse files Browse the repository at this point in the history
  • Loading branch information
FlipperPA committed May 23, 2021
1 parent 20a949d commit 1ba1775
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peregrine/templates/peregrine/site_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

{% block head_meta %}
<meta property="og:title" content="{{ page.title }} - {% settings_value 'WAGTAIL_SITE_NAME' %}">
<meta property="og:description" content="{{ page.excerpt|safe }}">
<meta property="og:description" content="{{ page.excerpt|striptags|safe }}">

{% settings_value 'WAGTAIL_SITE_URL' as url_exists %}
{% if url_exists %}
Expand Down

0 comments on commit 1ba1775

Please sign in to comment.