Class it_html:

/**
 * Return a <tag> containing optional data.
 * @param $name tag name ('style', etc.)
 * @param ... any number optional data or array of key => value arguments
 * @return string containing XML/HTML tag
 */
function tag($args)
{
    $name = array_shift($args);
    return $this->_tag($name, $args);
}