src/Debug/Utilities.php
public static function buildTag($tagName, $attribs = array(), $innerhtml = '')
    {
        $tagName = \strtolower($tagName);
        $attribStr = self::buildAttribString($attribs);
        return \in_array($tagName, self::$htmlEmptyTags)
            ? '<'.$tagName.$attribStr.' />'
            : '<'.$tagName.$attribStr.'>'.$innerhtml.'</'.$tagName.'>';
    }
public static function buildTag($tagName, $attribs = array(), $innerhtml = '')
    {
        $tagName = \strtolower($tagName);
        $attribStr = self::buildAttribString($attribs);
        return \in_array($tagName, self::$htmlEmptyTags)
            ? '<'.$tagName.$attribStr.' />'
            : '<'.$tagName.$attribStr.'>'.$innerhtml.'</'.$tagName.'>';
    }
public static function buildTag ( $ tagName , $ attribs = array ( ) , $ innerhtml = '' ) { $ tagName = \ strtolower ( $ tagName ) ; $ attribStr = self :: buildAttribString ( $ attribs ) ; return \ in_array ( $ tagName , self :: $ htmlEmptyTags ) ? '<' . $ tagName . $ attribStr . ' />' : '<' . $ tagName . $ attribStr . '>' . $ innerhtml . '</' . $ tagName . '>' ; }
Build an html tag

@param string       $tagName   tag name (ie "div" or "input")
@param array|string $attribs   key/value attributes
@param string       $innerhtml inner HTML if applicable

@return string
Build an html tag