trigger_error("
$this->cache_location is not writable. Make sure you've set the correct relative or absolute path, and that the location is server-writable.", E_USER_WARNING
);
} } } } } } // Get content node
$div =
$document->
getElementsByTagName('body'
)->
item(0
)->firstChild;
// Finally, convert to a HTML string
$data =
trim($document->
saveHTML($div));
if ($this->remove_div
) { $data =
preg_replace('/^<div' . SIMPLEPIE_PCRE_XML_ATTRIBUTE . '>/', '',
$data);
$data =
preg_replace('/<\/div>$/', '',
$data);
} else { $data =
preg_replace('/^<div' . SIMPLEPIE_PCRE_XML_ATTRIBUTE . '>/', '<div>',
$data);
} }