1
0
mirror of https://github.com/github/choosealicense.com synced 2024-12-22 12:50:24 +01:00

Merge pull request #23 from dpen2000/patch-1

Strip html from description when displaying in meta tag
This commit is contained in:
Phil Haack 2013-07-15 12:59:59 -07:00
commit 3443bd014d

View File

@ -8,7 +8,7 @@
<meta content='IE=edge,chrome=1' http-equiv='X-UA-Compatible'> <meta content='IE=edge,chrome=1' http-equiv='X-UA-Compatible'>
{% if page.description %} {% if page.description %}
<meta name="description" content="{{ page.description }}"> <meta name="description" content="{{ page.description | strip_html }}">
{% endif %} {% endif %}
<link href='/favicon.ico' rel='shortcut icon' type='image/x-icon'> <link href='/favicon.ico' rel='shortcut icon' type='image/x-icon'>