moteur de recherche : trigram+substring, navbar, page resultats
This commit is contained in:
@@ -264,7 +264,7 @@ $mainClass = 'container-fluid';
|
||||
// Auto-description depuis le contenu si le champ SEO est vide
|
||||
$seoDescription = $article['seo_description'] ?? '';
|
||||
if ($seoDescription === '') {
|
||||
$plain = strip_tags((new Parsedown())->text($article['content']));
|
||||
$plain = strip_tags($Parsedown->text($article['content']));
|
||||
$plain = preg_replace('/\s+/', ' ', $plain);
|
||||
$seoDescription = mb_strimwidth(trim((string)$plain), 0, 155, '…');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user