From ad1ea4186dd34ac3551899adc80f4cc7a5d4d74e Mon Sep 17 00:00:00 2001 From: Sascha Wagner Date: Tue, 2 Feb 2016 08:56:12 +0100 Subject: [PATCH] Strip tags from title in JSON-LD (cherry picked from commit 0bb74527677de3163f9fa81d7320680b0f1adb91) Signed-off-by: Sascha Wagner --- templates/partial/jsonld_article.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/partial/jsonld_article.html b/templates/partial/jsonld_article.html index 8d39aab..f0cd70e 100644 --- a/templates/partial/jsonld_article.html +++ b/templates/partial/jsonld_article.html @@ -7,8 +7,8 @@ { "@context": "http://schema.org", "@type": "BlogPosting", - "name": "{{ article.title }}", - "headline": "{{ article.title }}", + "name": "{{ article.title|striptags }}", + "headline": "{{ article.title|striptags }}", "datePublished": "{{ article.date }}", "dateModified": "{{ article.modified }}", "author": {