public static function tag($tag, $text = '', array $attributes = NULL)
    {
        $autoClose = array('input', 'br', 'hr', 'img', 'col', 'area', 'base', 'link', 'meta', 'frame', 'param');
        return "<$tag" . self::attributes($attributes) . (in_array($tag, $autoClose) ? ' />' : ">$text</$tag>");
    }
public static function tag($tag, $text = '', array $attributes = NULL)
    {
        $autoClose = array('input', 'br', 'hr', 'img', 'col', 'area', 'base', 'link', 'meta', 'frame', 'param');
        return "<$tag" . self::attributes($attributes) . (in_array($tag, $autoClose) ? ' />' : ">$text</$tag>");
    }
public static function tag ( $ tag , $ text = '' , array $ attributes = NULL ) { $ autoClose = array ( 'input' , 'br' , 'hr' , 'img' , 'col' , 'area' , 'base' , 'link' , 'meta' , 'frame' , 'param' ) ; return "<$tag" . self :: attributes ( $ attributes ) . ( in_array ( $ tag , $ autoClose ) ? ' />' : ">$text</$tag>" ) ; }
Create an HTML tag

@param string $tag the tag name
@param string $text the text to insert between the tags
@param array $attributes of additional tag settings
@return string
Create an HTML tag