From fe0e40cb991c9caa45967bcec3362194fbe529a5 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Tue, 28 Apr 2020 15:09:39 +0200 Subject: [PATCH] =?UTF-8?q?075=20optimisation=20m=C3=A9ta=20d'un=20article?= =?UTF-8?q?=20de=20blog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core.php b/core/core.php index a87fc162..3523fea0 100755 --- a/core/core.php +++ b/core/core.php @@ -1543,7 +1543,7 @@ class core extends common { 'title' => $title, // Meta description = 160 premiers caractères de l'article 'metaDescription' => $this->getData(['page',$this->getUrl(0),'moduleId']) === 'blog' && !empty($this->getUrl(1)) - ? substr($this->getData(['module',$this->getUrl(0),$this->getUrl(1),'content']) ,0,159) + ? strip_tags(substr($this->getData(['module',$this->getUrl(0),$this->getUrl(1),'content']) ,0,159)) : $this->getData(['page', $this->getUrl(0), 'metaDescription']), 'metaTitle' => $this->getData(['page', $this->getUrl(0), 'metaTitle']), 'typeMenu' => $this->getData(['page', $this->getUrl(0), 'typeMenu']),