PHP HTML -Text vor dem ersten H2 -Tag
protected function firtsText(string $postContent): string {
$explotion = explode("<h2>", $postContent);
$firstText = $explotion[0];
return $explotion[0];
}
MaestroError