/** * Returns a formatted block tag, i.e DIV, SPAN, P. * * ### Options * * - `escape` Whether or not the contents should be html_entity escaped. * * @param string $name Tag name. * @param string $text String content that will appear inside the div element. * If null, only a start tag will be printed * @param array $options Additional HTML attributes of the DIV tag, see above. * @return string The formatted tag element * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/html.html#HtmlHelper::tag */ public function tag($name, $text = null, array $options = array()) { if (isset($options['icon'])) { $text = $this->icon($options['icon']) . ' ' . $text; unset($options['icon']); } return parent::tag($name, $text, $options); }