public function setTextMode($textmode, $untilTag = null) {
        $this->textMode = $textmode & (HTML5_Elements::TEXT_RAW | HTML5_Elements::TEXT_RCDATA);
        $this->untilTag = $untilTag;
    }
public function setTextMode($textmode, $untilTag = null) {
        $this->textMode = $textmode & (HTML5_Elements::TEXT_RAW | HTML5_Elements::TEXT_RCDATA);
        $this->untilTag = $untilTag;
    }
public function setTextMode ( $ textmode , $ untilTag = null ) { $ this -> textMode = $ textmode & ( HTML5_Elements :: TEXT_RAW | HTML5_Elements :: TEXT_RCDATA ) ; $ this -> untilTag = $ untilTag ; }
Set the text mode for the character data reader.

HTML5 defines three different modes for reading text:
- Normal: Read until a tag is encountered.
- RCDATA: Read until a tag is encountered, but skip a few otherwise-
special characters.
- Raw: Read until a special closing tag is encountered (viz. pre, script)

This allows those modes to be set.

Normally, setting is done by the event handler via a special return code on
startTag(), but it can also be set manually using this function.

@param integer $textmode
One of HTML5_Elements::TEXT_*
@param string $untilTag
The tag that should stop RAW or RCDATA mode. Normal mode does not
use this indicator.
Set the text mode for the character data reader .