src/View/Helper/HtmlElementTrait.php
protected function renderElement($content = null)
    {
        // Get element parts
        $element    = $this->getElement();
        $attributes = $this->getAttributesAsString();

        // Create html
        $html = '<' . $element;
        if ($attributes) {
            $html .= $attributes;
        }

        // Create closing tag
        if (is_string($content)) {
            $html .= '>' . $content . '</' . $element;
        }
        $html .= $this->getClosingBracket();

        return $html;
    }
protected function renderElement($content = null)
    {
        // Get element parts
        $element    = $this->getElement();
        $attributes = $this->getAttributesAsString();

        // Create html
        $html = '<' . $element;
        if ($attributes) {
            $html .= $attributes;
        }

        // Create closing tag
        if (is_string($content)) {
            $html .= '>' . $content . '</' . $element;
        }
        $html .= $this->getClosingBracket();

        return $html;
    }
protected function renderElement ( $ content = null ) { // Get element parts $ element = $ this -> getElement ( ) ; $ attributes = $ this -> getAttributesAsString ( ) ; // Create html $ html = '<' . $ element ; if ( $ attributes ) { $ html .= $ attributes ; } // Create closing tag if ( is_string ( $ content ) ) { $ html .= '>' . $ content . '</' . $ element ; } $ html .= $ this -> getClosingBracket ( ) ; return $ html ; }
Render html element

@param  string $content
@return string
Render html element