src/Tag.php
public function removeClass($class)
    {
        $classes = $this->get('class');
        if ($classes) {
            $classes = trim(preg_replace('/(^| ){1}' . $class . '( |$){1}/i', ' ', $classes));
            $this->set('class', $classes);
        }

        return $this;
    }
public function removeClass($class)
    {
        $classes = $this->get('class');
        if ($classes) {
            $classes = trim(preg_replace('/(^| ){1}' . $class . '( |$){1}/i', ' ', $classes));
            $this->set('class', $classes);
        }

        return $this;
    }
public function removeClass ( $ class ) { $ classes = $ this -> get ( 'class' ) ; if ( $ classes ) { $ classes = trim ( preg_replace ( '/(^| ){1}' . $ class . '( |$){1}/i' , ' ' , $ classes ) ) ; $ this -> set ( 'class' , $ classes ) ; } return $ this ; }
Remove a class from the element's class list

@param string $class

@return self
Remove a class from the element s class list