public function removeClass($className)
    {
        $existingClasses = !empty($this->attributes['class'])
            ? explode(' ',$this->attributes['class'])
            : array();
        unset($existingClasses[array_search($className, $existingClasses)]);
        $this->attributes['class'] = implode(' ', $existingClasses);
    }