code: public static function buildTag($tagName, $attribs = array(), $innerhtml = '')
      {
          $tagName = \strtolower($tagName);
          $attribStr = self::buildAttribString($attribs);
          return \in_array($tagName, self::$htmlEmptyTags)
              ? '<'.$tagName.$attribStr.' />'
              : '<'.$tagName.$attribStr.'>'.$innerhtml.'</'.$tagName.'>';
      }
docs: Build an html tag
  
  @param string       $tagName   tag name (ie "div" or "input")
  @param array|string $attribs   key/value attributes
  @param string       $innerhtml inner HTML if applicable
  
  @return string