WordPress at a glance
function is not described

SimplePie::sanitize() public WP 1.0

Sanitize feed data

{} It's a method of the class: SimplePie{}

No Hooks.

Return

String. Sanitized data

Usage

$SimplePie = new SimplePie();
$SimplePie->sanitize( $data, $type, $base );
$data(string) (required)
Data to sanitize
$type(int) (required)
One of the SIMPLEPIE_CONSTRUCT_* constants
$base(string)
Base URL to resolve URLs against

Notes

Code of SimplePie::sanitize() WP 5.7.2

<?php
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;
	}
}