{{-- Texte de description mis en forme : paragraphes, liens cliquables, « Fiche complète » en bouton. --}} @php $t = e((string) ($text ?? '')); $fiche = null; if (preg_match('/Fiche compl[èe]te\s*:\s*(https?:\/\/\S+)/iu', $t, $m)) { $fiche = html_entity_decode($m[1]); $t = trim(str_replace($m[0], '', $t)); } $t = preg_replace('~(https?://[^\s<]+)~i', '$1', $t); $paras = array_filter(preg_split("/\n{2,}/", str_replace("\r", '', trim($t))), fn ($p) => trim($p) !== ''); @endphp
@foreach ($paras as $p)

{!! nl2br($p) !!}

@endforeach @if ($fiche) Voir la fiche complète sur {{ preg_replace('/^www\./', '', parse_url($fiche, PHP_URL_HOST) ?: 'le site source') }} @endif