public static function buildHtmlElement($name, array $attributes = [], $content = null, $closeEmptyTag = true, array $cssClasses = []): string
    {
        $html = '<' . $name . self::buildAttrs($attributes, $cssClasses);
        if ($content !== null) {
            $html .= '>' . $content . '</' . $name . '>';
        } else {
            $html .= $closeEmptyTag ? ' />' : '>';
        }
        return $html;
    }
public static function buildHtmlElement($name, array $attributes = [], $content = null, $closeEmptyTag = true, array $cssClasses = []): string
    {
        $html = '<' . $name . self::buildAttrs($attributes, $cssClasses);
        if ($content !== null) {
            $html .= '>' . $content . '</' . $name . '>';
        } else {
            $html .= $closeEmptyTag ? ' />' : '>';
        }
        return $html;
    }
public static function buildHtmlElement ( $ name , array $ attributes = [ ] , $ content = null , $ closeEmptyTag = true , array $ cssClasses = [ ] ) : string { $ html = '<' . $ name . self :: buildAttrs ( $ attributes , $ cssClasses ) ; if ( $ content !== null ) { $ html .= '>' . $ content . '</' . $ name . '>' ; } else { $ html .= $ closeEmptyTag ? ' />' : '>' ; } return $ html ; }
Build an html element
@param string $name
@param array $attributes
@param string $content
@param bool $closeEmptyTag
@return string
Build an html element