src/Template/Tokenizer/Token/Element.php
private function parseNoContents(string $tag, string $html): string
    {
        $remainingHtml = \ltrim($html);
        $matchingResult = \preg_match(
            "/(<\/\s*" . $tag . "\s*>)/i",
            $html,
            $endOfScriptMatches
        );
        if ($matchingResult === 0) {
            return '';
        }

        $closingTag = $endOfScriptMatches[1];
        $this->value = \mb_substr($remainingHtml, 0, \mb_strpos($html, $closingTag));

        return \mb_substr(
            \mb_strstr($remainingHtml, $closingTag),
            \mb_strlen($closingTag)
        );
    }
private function parseNoContents(string $tag, string $html): string
    {
        $remainingHtml = \ltrim($html);
        $matchingResult = \preg_match(
            "/(<\/\s*" . $tag . "\s*>)/i",
            $html,
            $endOfScriptMatches
        );
        if ($matchingResult === 0) {
            return '';
        }

        $closingTag = $endOfScriptMatches[1];
        $this->value = \mb_substr($remainingHtml, 0, \mb_strpos($html, $closingTag));

        return \mb_substr(
            \mb_strstr($remainingHtml, $closingTag),
            \mb_strlen($closingTag)
        );
    }
private function parseNoContents ( string $ tag , string $ html ) : string { $ remainingHtml = \ ltrim ( $ html ) ; $ matchingResult = \ preg_match ( "/(<\/\s*" . $ tag . "\s*>)/i" , $ html , $ endOfScriptMatches ) ; if ( $ matchingResult === 0 ) { return '' ; } $ closingTag = $ endOfScriptMatches [ 1 ] ; $ this -> value = \ mb_substr ( $ remainingHtml , 0 , \ mb_strpos ( $ html , $ closingTag ) ) ; return \ mb_substr ( \ mb_strstr ( $ remainingHtml , $ closingTag ) , \ mb_strlen ( $ closingTag ) ) ; }
Will not parse the contents of an element.

"iframe" elements.

@param $tag  string
@param $html string

@return string The remaining HTML.
Will not parse the contents of an element .