Generates an HTML element.
public static tag ( string $tag, array $htmlOptions = [], mixed $content = false, boolean $closeTag = true ) : string | ||
$tag | string | the tag name. |
$htmlOptions | array | the element attributes. |
$content | mixed | the content to be enclosed between open and close element tags. |
$closeTag | boolean | whether to generate the close tag. |
return | string | the generated HTML element tag. |