Teks html php sebelum tag h2 pertama
protected function firtsText(string $postContent): string {
$explotion = explode("<h2>", $postContent);
$firstText = $explotion[0];
return $explotion[0];
}
MaestroError