public function clean()
    {
        $this->removedTags = array();
        $elem = $this->getRealElement();
        if (is_null($elem)) {
            return array();
        }
        $this->cleanNodes($elem, true);
        return $this->removedTags;
    }
public function clean()
    {
        $this->removedTags = array();
        $elem = $this->getRealElement();
        if (is_null($elem)) {
            return array();
        }
        $this->cleanNodes($elem, true);
        return $this->removedTags;
    }
public function clean ( ) { $ this -> removedTags = array ( ) ; $ elem = $ this -> getRealElement ( ) ; if ( is_null ( $ elem ) ) { return array ( ) ; } $ this -> cleanNodes ( $ elem , true ) ; return $ this -> removedTags ; }
Perform the cleaning of the document
@return array List of deleted HTML tags
Perform the cleaning of the document