{{$media->title_en}}
@php $string = strip_tags($media->details_en); if (strlen($media->details_en) > 230) { // truncate string $stringCut = substr($string, 0, 230); $endPoint = strrpos($stringCut, ' '); //if the string doesn't contain any space then it will cut without word basis. $string = $endPoint? substr($stringCut, 0, $endPoint) : substr($stringCut, 0); } @endphp {!! $string !!}
See more