getNodeFactory()->createCallableNode( static function () use ($data, $document): string { $nodeValue = ''; if ($document !== null) { $nodeValue = $document->render(); } return sprintf( '

New in version %s: %s

', $data, strip_tags($nodeValue, '') ); } ); } }