Output content.

@param string $name
@param string $content
@param array|string $class
@param string $id
@param array $attrs
@return string
511337
public function render($name, $content = '', $class = '', $id = '', array $attrs = array())
    {
        $attrs['name'] = $name;
        $attrs['tag']  = 'textarea';

        return Html::_('tag')->render($content, $class, $id, $attrs);
    }
438962
public static function script(
        string $content, 
        array $attributes = ["type" => "text/javascript"],
        bool $addCdataTag = true
    ) : string
    {
        if ($addCdataTag) {
            $content = "\n//<![CDATA[\n" . $content ."\n//]]>\n";
        }
        return self::tag("script", $content, $attributes);
    }
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;
    }
688125
public static function create($name, $content = '', $attribs = [], $forcePair = false)
    {
        $name = trim($name);

        $tag = '<' . $name;

        $tag .= static::buildAttributes($attribs);

        if ($content !== null) {
            $tag .= '>' . $content . '</' . $name . '>';
        } else {
            $tag .= $forcePair ? '></' . $name . '>' : ' />';
        }

        return $tag;
    }
655501
protected function _renderTag($attribs = array(), $content = null)
    {
        $link = isset($attribs['src']) ? $attribs['src'] : false;
        $condition = isset($attribs['condition']) ? $attribs['condition'] : false;

        if(!$link)
        {
            $attribs = $this->buildAttributes($attribs);

            $html  = '<style type="text/css" '.$attribs.'>'."\n";
            $html .= trim($content);
            $html .= '</style>'."\n";
        }
        else
        {
            unset($attribs['src']);
            unset($attribs['condition']);
            $attribs = $this->buildAttributes($attribs);

            if($condition)
            {
                $html  = '<!--['.$condition.']>';
                $html .= '<link type="text/css" rel="stylesheet" href="'.$link.'" '.$attribs.' />'."\n";
                $html .= '<![endif]-->';
            }
            else $html  = '<link type="text/css" rel="stylesheet" href="'.$link.'" '.$attribs.' />'."\n";
        }

        return $html;
    }
922632
public static function textarea($name,
                             $class = NULL,
                             $id = NULL,
                             $value = NULL,
                             $label = NULL,
                             $attrs = array())
    {
        $ret = NULL;
        if($label)
            $ret .= PHP_EOL . self::formatLabel($label, $id);
        if(!$value)
            $value = '';
        $attrs['name'] = $name;
        $ret .= self::tag('textarea',$value, $class, $id, $attrs);
        
        return $ret;
        
    }
993302
protected static function wrap( $content, $class, $attributes = array() )
	{
		$attributes	= array_merge( $attributes, array( 'class' => $class ) );
		return UI_HTML_Tag::create( "div", $content, $attributes );
	}
486145
function writeTag(name, attrs, close, content) {
  var end = close ? '/>' : '>'
    , pairs = []
    , tag;

  for (var key in attrs) {
    pairs.push(key + '="' + escape(attrs[key]) + '"');
  }
  tag = '<' + name + (pairs.length ? ' ' + pairs.join(' ') : '') + end;

  if (content){
    tag += content + '</' + name + end;
  }
  return tag;
}
75111
public function text($name = null, $value = null, $attr = null)
    {
        return $this->createInput('text', $name, $value, $attr);
    }
1185576
protected function filePutClassContent($file, $content, $chmod)
    {
        $from = [
            "/[\n]+(\n +const )/",
            "/}\n([\n]*[ ]*protected)/",
            "/}\n[\n]+}/",
            "/array\([ \n]+\)/",
            "/'SCHEMAS::([^']+)'/"
        ];
        $to = [
            '$1',
            '}$1',
            "}\n}",
            '[]',
            "DB_SCHEMAS['$1']"
        ];
        foreach ($this->getSchemaKeys() as $db => $key) {
            $from[] = '/`' . $db . '`/';
            $to[] = "`' . DB_SCHEMAS['" . $key . "'] . '`";
        }
        $content = preg_replace($from, $to, $content);
        file_put_contents($file, trim($content));
        chmod($file, $chmod);
    }
121167
function render($class = '', $id = '', $return = false)
    {
        $link = $this->link . ($this->getparams ? '?'.$this->getparams.'&' : '?');
        ?>
        <div <?=(($id != '')? 'id="'.$id.'"' : '')?> <?=(($class != '')? 'class="'.$class.'"' : '')?>>
	        <a class="start" href="<?=$link?>p=1" title="Start">&nbsp;</a>
	        <a class="back" href="<?=$link?>p=<?=max($this->getPageNum() - 1, 1)?>"
		        title="Back">&nbsp;</a>
	        <?foreach($this->getPagesList() as $page):?>
	            <a class="number<?=($page == $this->getPageNum()? ' selected' : '')?>"
                    href="<?=$link?>p=<?=$page?>" title="Back"><?=$page?></a>
	        <?endforeach?>
	        <a class="next" href="<?=$link?>p=<?=min($this->getPageNum() + 1, $this->getPages())?>"
                title="Back">&nbsp;</a>
	        <a class="end" href="<?=$link?>p=<?=$this->getPages()?>"
                title="End">&nbsp;</a>
        </div>
        <?php
    }
28785
protected function _renderTag($attribs = array(), $content = null)
    {
        if($this->getTemplate()->decorator() == 'joomla')
        {
            if($this->getConfig()->escape) {
                $content = $this->getTemplate()->escape($content);
            }

            JFactory::getDocument()->setTitle($content);
        }
        else return parent::_renderTag($attribs, $content);
    }
1216072
public static function create($name, $content = '', $attribs = [], $forcePair = false)
    {
        $paired = $forcePair ?: !in_array(strtolower($name), static::$unpairedElements);

        return parent::create($name, $content, $attribs, $paired);
    }
1016614
public static function el($name = NULL, $attrs = NULL)
	{
		$el = new static;
		$parts = explode(' ', (string)$name, 2);
		$el->setName($parts[0]);

		if (is_array($attrs)) {
			$el->attrs = $attrs;

		} elseif ($attrs !== NULL) {
			$el->setText($attrs);
		}

		if (isset($parts[1])) {
			$matches = preg_match_all('#([a-z0-9:-]+)(?:=(["\'])?(.*?)(?(2)\\2|\s))?#i', $parts[1] . ' ', $matches, PREG_SET_ORDER);
			foreach ($matches as $m) {
				$el->attrs[$m[1]] = isset($m[3]) ? $m[3] : TRUE;
			}
		}

		return $el;
	}
1015375
public function render($content, array $attributes = [])
    {
        $this->twig->getLoader()->setTemplate('content', $content);

        return $this->twig->render(
            'content',
            $attributes
        );
    }
68919
public function render($name, $value, $class = '', $id = '', array $attrs = array())
    {
        $attrs = $this->_setId($attrs, $id);
        $attrs = $this->_cleanAttrs($attrs);
        $attrs = $this->_mergeAttr($attrs, $this->_jbSrt('input-' . $this->_type));

        if (!empty($class)) {
            $attrs = $this->_normalizeClassAttr($attrs, $class);
        }

        $attrs = array_merge(array(
            'name'  => $name,
            'value' => $value,
            'type'  => $this->_type
        ), $attrs);

        return '<input ' . $this->buildAttrs($attrs) . ' />';
    }
1151458
public static function tag($name, $content = NULL, Array $attributes = NULL) {
    $tag = new HTMLTag($name, $content, $attributes);
    return $tag;
  }