@extends('layouts.web')
@section('content')
{{ $news->category->name ?? 'Berita' }}
{{ $news->published_at ? $news->published_at->format('d F Y') : 'Draft' }}
{{ $heroExcerpt }}{{ $news->title }}
@endif
@endif
]*>([\s\S]*?)<\/pre>/i', function($m) use ($normalize) {
$text = strip_tags($m[1]);
$text = trim(html_entity_decode($text));
$e = $normalize($text);
return $e ? '' : $m[0];
}, $out);
$out = preg_replace_callback('/]*>([\s\S]*?)<\/code>/i', function($m) use ($normalize) {
$text = strip_tags($m[1]);
$text = trim(html_entity_decode($text));
$e = $normalize($text);
return $e ? '' : $m[0];
}, $out);
return $out;
};
$render = \Mews\Purifier\Facades\Purifier::clean($convert($html), 'youtube');
@endphp
{!! $render !!}