protected function _attribute($key, $value, array $options = array())
{
$defaults = array('escape' => true, 'format' => '%s="%s"');
$options += $defaults;
if (in_array($key, $this->_minimized)) {
$isMini = $value === 1 || $value === true || $value === $key;
if (!($value = $isMini ? $key : $value)) {
return null;
}
}
$value = (string) $value;
if ($options['escape']) {
return sprintf($options['format'], $this->escape($key), $this->escape($value));
}
return sprintf($options['format'], $key, $value);
}