sanitize() public method

Sanitize feed data
See also: SimplePie_Sanitize::sanitize()
public sanitize ( string $data, integer $type, string $base = '' ) : string
$data string Data to sanitize
$type integer One of the SIMPLEPIE_CONSTRUCT_* constants
$base string Base URL to resolve URLs against
return string Sanitized data
Example #1
0
 /**
  * Sanitize feed data
  *
  * @access private
  * @see SimplePie::sanitize()
  * @param string $data Data to sanitize
  * @param int $type One of the SIMPLEPIE_CONSTRUCT_* constants
  * @param string $base Base URL to resolve URLs against
  * @return string Sanitized data
  */
 public function sanitize($data, $type, $base = '')
 {
     return $this->feed->sanitize($data, $type, $base);
 }