SimplePie_Sanitize::preprocess

Advertisement

Syntax Syntax

SimplePie_Sanitize::preprocess( $html,  $type )

Source Source

File: wp-includes/SimplePie/Sanitize.php

				if ($absolute !== false)
				{
					$data = $absolute;
				}
			}

			if ($type & (SIMPLEPIE_CONSTRUCT_TEXT | SIMPLEPIE_CONSTRUCT_IRI))
			{
				$data = htmlspecialchars($data, ENT_COMPAT, 'UTF-8');
			}

			if ($this->output_encoding !== 'UTF-8')
			{
				$data = $this->registry->call('Misc', 'change_encoding', array($data, 'UTF-8', $this->output_encoding));
			}
		}
		return $data;
	}

	protected function preprocess($html, $type)
	{
		$ret = '';

Advertisement

Advertisement

Leave a Reply