src/ParserTrait.php
protected function getData($data)
    {
        $method = "load" . strtoupper($this->mode);

        libxml_use_internal_errors(true);
        $this->dom->$method($data);
        $this->errors = libxml_get_errors();
        libxml_clear_errors();

        return $data;
    }
protected function getData($data)
    {
        $method = "load" . strtoupper($this->mode);

        libxml_use_internal_errors(true);
        $this->dom->$method($data);
        $this->errors = libxml_get_errors();
        libxml_clear_errors();

        return $data;
    }
protected function getData ( $ data ) { $ method = "load" . strtoupper ( $ this -> mode ) ; libxml_use_internal_errors ( true ) ; $ this -> dom -> $ method ( $ data ) ; $ this -> errors = libxml_get_errors ( ) ; libxml_clear_errors ( ) ; return $ data ; }
Get the content for parsing.

Creates an internal dom instance.

@param string $data The xml/html

@return string The xml/html
Get the content for parsing .