protected function characterData() {
        if ($this->scanner->current() === false) {
            return false;
        }
        switch ($this->textMode) {
            case HTML5_Elements::TEXT_RAW:
                return $this->rawText();
            case HTML5_Elements::TEXT_RCDATA:
                return $this->rcdata();
            default:
                $tok = $this->scanner->current();
                if (strspn($tok, "<&")) {
                    return false;
                }
                return $this->text();
        }
    }
protected function characterData() {
        if ($this->scanner->current() === false) {
            return false;
        }
        switch ($this->textMode) {
            case HTML5_Elements::TEXT_RAW:
                return $this->rawText();
            case HTML5_Elements::TEXT_RCDATA:
                return $this->rcdata();
            default:
                $tok = $this->scanner->current();
                if (strspn($tok, "<&")) {
                    return false;
                }
                return $this->text();
        }
    }
protected function characterData ( ) { if ( $ this -> scanner -> current ( ) === false ) { return false ; } switch ( $ this -> textMode ) { case HTML5_Elements :: TEXT_RAW : return $ this -> rawText ( ) ; case HTML5_Elements :: TEXT_RCDATA : return $ this -> rcdata ( ) ; default : $ tok = $ this -> scanner -> current ( ) ; if ( strspn ( $ tok , "<&" ) ) { return false ; } return $ this -> text ( ) ; } }
Parse anything that looks like character data.

Different rules apply based on the current text mode.

@see HTML5_Elements::TEXT_RAW HTML5_Elements::TEXT_RCDATA.
Parse anything that looks like character data .