public function sanitize($data, $type, $base = '')
{
try {
return $this->sanitize->sanitize($data, $type, $base);
} catch (SimplePie_Exception $e) {
if (!$this->enable_exceptions) {
$this->error = $e->getMessage();
$this->registry->call('Misc', 'error', array($this->error, E_USER_WARNING, $e->getFile(), $e->getLine()));
return '';
}
throw $e;
}
}