/**
  * Creates the markup for an attribute
  *
  * @param string $attribute_name
  * @param string $attribute_value
  * @return string
  */
 protected function create_attribute_markup($attribute_name, $attribute_value)
 {
     if (empty($attribute_value)) {
         return '';
     }
     $attribute_value = $this->template_adapter->escape_attribute($attribute_value);
     return "{$attribute_name}='{$attribute_value}'";
 }
 /**
  * Renders the markup for the attributes of the tag
  *
  * @return string
  */
 protected function render_attributes_markup()
 {
     $html = array();
     foreach ($this->attributes as $name => $values) {
         $values = $this->template_adapter->escape_attribute(implode(' ', $values));
         $html[] = "{$name}='{$values}'";
     }
     return implode(' ', $html);
 }