--- ContentObjectRenderer.php 2020-04-25 11:58:11.311908520 +0200 +++ ContentObjectRenderer.patched.php 2020-04-25 11:56:31.300926021 +0200 @@ -3932,7 +3932,7 @@ // call this method recursively if found if (strpos($data, '<') !== false) { foreach ($conf['tags.'] as $tag => $tagConfig) { - if (strpos($data, '<' . $tag) !== false) { + if (preg_match('#<' . $tag.'[\s/>]#', $data)) { $data = $this->_parseFunc($data, $conf); break; } @@ -7113,7 +7113,7 @@ // Take care for nested tags do { $nextMatchingEndTagPosition = strpos($tempContent, $endTag); - $nextSameTypeTagPosition = strpos($tempContent, $startTag); + $nextSameTypeTagPosition = preg_match('#'.$startTag.'[\s/>]#', $tempContent, $nextSameStartTagMatches, PREG_OFFSET_CAPTURE) ? $nextSameStartTagMatches[0][1] : false; // filter out nested tag contents to help getting the correct closing tag if ($nextSameTypeTagPosition !== false && $nextSameTypeTagPosition < $nextMatchingEndTagPosition) {