XML_Unserializer::cdataHandler PHP Method

cdataHandler() public method

Handler for character data
public cdataHandler ( object $parser, string $cdata ) : void
$parser object XML parser object
$cdata string CDATA
return void
    function cdataHandler($parser, $cdata)
    {
        if ($this->options[XML_UNSERIALIZER_OPTION_DECODE_FUNC] !== null) {
            $cdata = call_user_func($this->options[XML_UNSERIALIZER_OPTION_DECODE_FUNC], $cdata);
        }
        $this->_dataStack[$this->_depth] .= $cdata;
    }