application/modules/g/views/helpers/Html.php
public function html($tag, $value = null, array $attributes = array()) {
        // This happens when used from a Garp_Form context
        if (array_key_exists('id', $attributes) && !$attributes['id']) {
            unset($attributes['id']);
        }
        if (isset($attributes['tag'])) {
            $tag = $attributes['tag'];
            unset($attributes['tag']);
        }
        $escape = true;
        if (array_key_exists('escape', $attributes)) {
            $escape = $attributes['escape'];
            unset($attributes['escape']);
        }

        $html  = '<' . $tag;
        $html .= $this->_htmlAttribs($attributes) . '>';
        if ($value) {
            if ($escape) {
                $value = $this->view->escape($value);
            }
            $html .= $value;
        }
        $html .= '</' . $tag . '>';
        return $html;
    }
public function html($tag, $value = null, array $attributes = array()) {
        // This happens when used from a Garp_Form context
        if (array_key_exists('id', $attributes) && !$attributes['id']) {
            unset($attributes['id']);
        }
        if (isset($attributes['tag'])) {
            $tag = $attributes['tag'];
            unset($attributes['tag']);
        }
        $escape = true;
        if (array_key_exists('escape', $attributes)) {
            $escape = $attributes['escape'];
            unset($attributes['escape']);
        }

        $html  = '<' . $tag;
        $html .= $this->_htmlAttribs($attributes) . '>';
        if ($value) {
            if ($escape) {
                $value = $this->view->escape($value);
            }
            $html .= $value;
        }
        $html .= '</' . $tag . '>';
        return $html;
    }
public function html ( $ tag , $ value = null , array $ attributes = array ( ) ) { // This happens when used from a Garp_Form context if ( array_key_exists ( 'id' , $ attributes ) && ! $ attributes [ 'id' ] ) { unset ( $ attributes [ 'id' ] ) ; } if ( isset ( $ attributes [ 'tag' ] ) ) { $ tag = $ attributes [ 'tag' ] ; unset ( $ attributes [ 'tag' ] ) ; } $ escape = true ; if ( array_key_exists ( 'escape' , $ attributes ) ) { $ escape = $ attributes [ 'escape' ] ; unset ( $ attributes [ 'escape' ] ) ; } $ html = '<' . $ tag ; $ html .= $ this -> _htmlAttribs ( $ attributes ) . '>' ; if ( $ value ) { if ( $ escape ) { $ value = $ this -> view -> escape ( $ value ) ; } $ html .= $ value ; } $ html .= '</' . $ tag . '>' ; return $ html ; }
Render the HTML.

@param string $tag
@param string $value
@param array $attributes
@return string
Render the HTML .