src/Library/Helper/Html.php
public static function writeHtmlTag($tag_name, $content = '', $attrs = array(), $intag_close = false)
    {
        $str = '<'.$tag_name.self::parseAttributes( $attrs );
        if (empty($content) && true===$intag_close) {
            $str .= self::$html_tag_closure;
        } else {
            $str .= '>'.(is_string($content) ? $content : '').'</'.$tag_name.'>';
        }
        return $str;
    }
public static function writeHtmlTag($tag_name, $content = '', $attrs = array(), $intag_close = false)
    {
        $str = '<'.$tag_name.self::parseAttributes( $attrs );
        if (empty($content) && true===$intag_close) {
            $str .= self::$html_tag_closure;
        } else {
            $str .= '>'.(is_string($content) ? $content : '').'</'.$tag_name.'>';
        }
        return $str;
    }
public static function writeHtmlTag ( $ tag_name , $ content = '' , $ attrs = array ( ) , $ intag_close = false ) { $ str = '<' . $ tag_name . self :: parseAttributes ( $ attrs ) ; if ( empty ( $ content ) && true === $ intag_close ) { $ str .= self :: $ html_tag_closure ; } else { $ str .= '>' . ( is_string ( $ content ) ? $ content : '' ) . '</' . $ tag_name . '>' ; } return $ str ; }
Build an HTML string for a specific tag with attributes

@param   string  $tag_name   The tag name
@param   string  $content    The tag content
@param   array   $attrs      An attributes array
@param   bool    $intag_close Can this kind of tag be directly closed (default is `false`)
@return  string  The HTML string for the tag
Build an HTML string for a specific tag with attributes