Не совсем понятно, что содержит $event->description
.Кроме того, не совсем ясно, что представляет \Str
, или даже какую версию Laravel вы используете.В приведенных ниже примерах предполагается, что вы имеете в виду Illuminate\Support\Str
и версию 5.8.XX, и я включаю две разные переменные описания.
$description = "<p><strong>Lorem ipsum</strong> dolor sit amet, consectetur adipiscing elit. "Ut augue orci, pellentesque at metus sed, tempor ultrices diam." Quisque tempor ullamcorper nunc, vitae efficitur justo tristique sed. Sed ac orci condimentum, viverra mi quis, pharetra sapien. Suspendisse nec nisi sem. </p>\n";
$descEncoded = "<p><strong>Lorem ipsum</strong> dolor sit amet, consectetur adipiscing elit. &quot;Ut augue orci, pellentesque at metus sed, tempor ultrices diam.&quot; Quisque tempor ullamcorper nunc, vitae efficitur justo tristique sed. Sed ac orci condimentum, viverra mi quis, pharetra sapien. Suspendisse nec nisi sem. Sed porta finibus posuere. Nunc a libero vitae mi ornare interdum.</p>";
html_entity_decode:
{!!\Illuminate\Support\Str::limit(html_entity_decode($description),180,"...")!!}
{!!\Illuminate\Support\Str::limit(html_entity_decode($descEncoded),180,"...")!!}

htmlspecialchars_decode:
{!!\Illuminate\Support\Str::limit(htmlspecialchars_decode($description),180,"...")!!}
{!!\Illuminate\Support\Str::limit(htmlspecialchars_decode($descEncoded),180,"...")!!}

Надеюсь, это поможет вам.Если вы обновите вопрос с более подробной информацией, я могу скорректировать ответ по мере необходимости.