### Options
- escape Whether or not the contents should be html_entity escaped.
public tag ( string $name, string | null $text = null, array $options = [] ) : string | ||
$name | string | Tag name. |
$text | string | null | String content that will appear inside the div element. If null, only a start tag will be printed |
$options | array | Additional HTML attributes of the DIV tag, see above. |
return | string | The formatted tag element |
/** * Returns a formatted block tag * @param string $name Tag name * @param string $text Tag content. If `null`, only a start tag will be * printed * @param array $options Array of options and HTML attributes * @return string */ public function tag($name, $text = null, array $options = []) { list($text, $options) = $this->addIconToText($text, $options); $options = $this->addTooltip($options); return parent::tag($name, is_null($text) ? '' : $text, $options); }