diff --git a/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php b/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php index 930ad5de4fb738fd7e869209092bc7c3435c21f0..1866b743c94fe4d9f6911093c0f7d05e1f318726 100644 --- a/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php +++ b/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php @@ -3688,7 +3688,7 @@ class ContentObjectRenderer implements LoggerAwareInterface $tag = explode(' ', trim($tagContent), 2); $tag[0] = strtolower($tag[0]); // end tag like </li> - if ($tag[0][0] === '/') { + if (str_starts_with($tag[0], '/')) { $tag[0] = substr($tag[0], 1); $tag['out'] = 1; }