protected function element($tag, $contents, $attr = array(), $escape = true)
    {
        return $this->start($tag, $attr) .
            ($escape ? $this->escape($contents) : $contents) .
            $this->end($tag);
    }
protected function element($tag, $contents, $attr = array(), $escape = true)
    {
        return $this->start($tag, $attr) .
            ($escape ? $this->escape($contents) : $contents) .
            $this->end($tag);
    }
protected function element ( $ tag , $ contents , $ attr = array ( ) , $ escape = true ) { return $ this -> start ( $ tag , $ attr ) . ( $ escape ? $ this -> escape ( $ contents ) : $ contents ) . $ this -> end ( $ tag ) ; }
Prints a complete element with content inside
@param string $tag Tag name
@param string $contents Element contents
@param array $attr Tag attributes
@param bool $escape whether or not to escape contents
@return string
Prints a complete element with content inside