protected function renderHtmlAttribute($name, $value)
    {
        if (true === $value) {
            return sprintf('%s="%s"', $name, $this->escape($name));
        }

        return sprintf('%s="%s"', $name, $this->escape($value));
    }
protected function renderHtmlAttribute($name, $value)
    {
        if (true === $value) {
            return sprintf('%s="%s"', $name, $this->escape($name));
        }

        return sprintf('%s="%s"', $name, $this->escape($value));
    }
protected function renderHtmlAttribute ( $ name , $ value ) { if ( true === $ value ) { return sprintf ( '%s="%s"' , $ name , $ this -> escape ( $ name ) ) ; } return sprintf ( '%s="%s"' , $ name , $ this -> escape ( $ value ) ) ; }
Renders a HTML attribute

@param string $name
@param string $value

@return string
Renders a HTML attribute