original_string: 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();
          }
      }
code: 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();
          }
      }
code_tokens: 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 ( ) ; } }
docstring: 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.
docstring_tokens: Parse anything that looks like character data .