Create th tag

@param string $content content
@param array $attributes further attributes
@return HTML Code
972816
public static function th(
        string $content = null, 
        array $attributes = []
    ) : string 
    {
        return self::tag("th", $content, $attributes);
    }
1119932
public static function area(
        string $content = null, 
        array $attributes = []
    ) : string
    {
        return self::tag("area", $content, $attributes);
    }
1184092
protected function _renderTag($attribs = array(), $content = null)
    {
        $attribs = $this->buildAttributes($attribs);

        $html = '<meta '.$attribs.' />'."\n";
        return $html;
    }
651992
protected function constructCell($content = null, $attributes = array())
	{
		$cell = new Cell($content);
		$cell->setAttributes($attributes);

		return $cell;
	}
884737
public function link($content, $url = '', $attributes = array())
    {
        $attributes['href'] = $url;

        return $this->tag('a', $content, $attributes);
    }
1316334
public function createLabel($textContent = null, array $attributes = [])
    {
        $label = new Form\Elements\Label($attributes);
        $label->attributes->addAttributeClass('col-form-label');

        if (isset($textContent)) {
            $label->textContent->push($textContent);
        }

        $this->childNodes->push($label);

        return $this->childNodes->last();
    }
397413
public function tag($name, $content, $attributes = array())
    {
        static $instance;

        $instance = $instance ? clone $instance : new LibBaseTemplateHelperHtmlElement();
        $instance->name = $name;
        $instance->content = $content;
        $instance->attributes = $attributes;

        return $instance;
    }
916649
private function render($content, array $attributes = []): string
    {
        $template = $attributes[$this->attributeName] ?? '';

        return $this->environment->render($template, ['content' => $content]);
    }
781367
public static function td(
        string $content = null, 
        array $attributes = []
    ) : string
    {
        return self::tag("td", $content, $attributes);
    }
79648
protected function createHtmlTag(array $tag)
    {
        $tagModel = new Shopgate_Model_Redirect_HtmlTag();
        $tagModel->setName($tag['name']);

        if (empty($tag['attributes'])) {
            return $tagModel;
        }

        $attributes = array();
        foreach ($tag['attributes'] as $attribute) {
            if (empty($attribute['name'])) {
                continue;
            }

            $attributes[] = $this->createHtmlTagAttribute($attribute);
        }

        $tagModel->setAttributes($attributes);

        return $tagModel;
    }
1151458
public static function tag($name, $content = NULL, Array $attributes = NULL) {
    $tag = new HTMLTag($name, $content, $attributes);
    return $tag;
  }
834856
private function renderTag($tag, $content = null, array $attributes = [])
    {
        $attr = [];

        foreach ($attributes as $key => $value) {
            $attr[] = sprintf(' %s="%s"', $key, $value);
        }

        if (0 < strlen($content)) {
            return sprintf('<%s%s>%s</%s>', $tag, implode('', $attr), $content, $tag);
        } else {
            return sprintf('<%s%s />', $tag, implode('', $attr));
        }
    }
163156
public static function createTag($tag, $htmlOptions = null, $content = null)
    {
        $return = '';
        $tag = self::clearAttributeKey(trim($tag));
        if ($tag) {
            $attributes = self::createAttributeString($htmlOptions);
            $return = '<' . $tag . (!empty($attributes) ? ' ' . $attributes : '');
            if ($content === false) {
                $return .= '>';
            } elseif ($content === true) {
                $return .= '>';
            } else {
                $return .= '>' . $content . self::createCloseTag($tag);
            }
        }

        return $return;
    }
622230
public function setHtmlContent(string $content) : Tag
    {
        if ($this->isVoid) {
            throw new \LogicException('Void elements cannot have any contents.');
        }

        $this->content = $content;

        return $this;
    }
522244
public function render(array $tag, $content) {
        $setup = $this->getFilter()->getTag($tag['tag']);
        $attributes = $tag['attributes'];

        // Dashes aren't allowed in variables, so change to underscores
        foreach ($attributes as $key => $value) {
            $attributes[str_replace('-', '_', $key)] = $value;
        }

        foreach ($this->getPaths() as $path) {
            $template = sprintf('%s%s.php', $path, $setup['template']);

            if (file_exists($template)) {
                extract($attributes, EXTR_OVERWRITE);
                ob_start();

                include $template;

                return trim(ob_get_clean());
            }
        }

        throw new IoException(sprintf('Template file %s does not exist', $setup['template']));
    }
1110261
public function generateMarkup(string $attribute, string $content) : string
    {
        // Substitute tag name, attribute value and text content in the output string.
        return preg_replace_callback('/{(\w+)}/', function ($matches) use ($attribute, $content) {
            switch ($matches[1]) {
                case 'name':
                    return $this->tagName;

                case 'attribute':
                    return $attribute;

                case 'content':
                    return $content;

                default:
                    return $matches[0];
            }
        }, $this->outputFormat);
    }
993302
protected static function wrap( $content, $class, $attributes = array() )
	{
		$attributes	= array_merge( $attributes, array( 'class' => $class ) );
		return UI_HTML_Tag::create( "div", $content, $attributes );
	}