Welcome to {{ config('app.name') }}

{{-- {!! nl2br(htmlspecialchars($project['description'])) !!} --}} @php $projectDescription = $projects['description']; $paragraphs = preg_split('/\n+/', $projectDescription); foreach ($paragraphs as $paragraph) { $trimmedParagraph = trim($paragraph); if (!empty($trimmedParagraph)) { preg_match('/^(\S+)/', $trimmedParagraph, $matches); $firstWord = htmlspecialchars($matches[1]); $restOfParagraph = trim(substr($trimmedParagraph, strlen($firstWord))); echo $firstWord . ' ' . $restOfParagraph . '

'; } } @endphp