Generates an enitre HTML tag with opening tag, text, and closing tag for a given tag name. Note that if no text is specified, this tag will be assumed to be self closing, and will have the same effect as calling the WOOF_HTML::open.
Parameters:
-
The tag name (do not include the angled brackets)
-
An arguments Array or String of HTML attributes to include in the tag
-
String $text = null
The text inside the HTML tag, which could be plain text, or other HTML tags.
-
Boolean $empty_attr = false
If true, attributes that are empty will be included in the HTML.