protected function removeAttribute($element, $attribute)
    {
        $replacement = Html::hasSurroundingAttributes($attribute) ? ' ' : '';

        return str_replace($attribute, $replacement, $element);
    }
protected function removeAttribute($element, $attribute)
    {
        $replacement = Html::hasSurroundingAttributes($attribute) ? ' ' : '';

        return str_replace($attribute, $replacement, $element);
    }
protected function removeAttribute ( $ element , $ attribute ) { $ replacement = Html :: hasSurroundingAttributes ( $ attribute ) ? ' ' : '' ; return str_replace ( $ attribute , $ replacement , $ element ) ; }
Remove the attribute from the element.

@param string $element
@param string $attribute

@return string
Remove the attribute from the element .