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