/**
  * Check if an attribute is a boolean attribute.
  *
  * @param string $attribute
  *
  * @return bool
  */
 private function isBooleanAttribute($attribute)
 {
     return $this->repository->getAttributes()->search(trim($attribute)) || Html::isDataAttribute($attribute);
 }
 /**
  * Remove the attribute from the element.
  *
  * @param string $element
  * @param string $attribute
  *
  * @return string
  */
 protected function removeAttribute($element, $attribute)
 {
     $replacement = Html::hasSurroundingAttributes($attribute) ? ' ' : '';
     return str_replace($attribute, $replacement, $element);
 }