From bd5f57cbc377fea9422e6749d4bd8331d69b39e3 Mon Sep 17 00:00:00 2001 From: Yamagishi Kazutoshi Date: Thu, 10 May 2018 21:38:40 +0900 Subject: [PATCH] Strip tags from og:description on public tag page (#7437) --- app/views/tags/_og.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/tags/_og.html.haml b/app/views/tags/_og.html.haml index 853a499aeac..a7c289bcb00 100644 --- a/app/views/tags/_og.html.haml +++ b/app/views/tags/_og.html.haml @@ -2,5 +2,5 @@ = opengraph 'og:url', tag_url(@tag) = opengraph 'og:type', 'website' = opengraph 'og:title', "##{@tag.name}" -= opengraph 'og:description', t('about.about_hashtag_html', hashtag: @tag.name) += opengraph 'og:description', strip_tags(t('about.about_hashtag_html', hashtag: @tag.name)) = opengraph 'twitter:card', 'summary'