SimplePie::sanitize

Advertisement

Private Access Private Access

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness. Use SimplePie_Sanitize::sanitize() instead.

Summery Summery

Sanitize feed data

Syntax Syntax

SimplePie::sanitize( string $data, int $type, string $base = '' )

Parameters Parameters

$data

(Required) Data to sanitize

$type

(Required) One of the SIMPLEPIE*CONSTRUCT** constants

$base

(Optional) Base URL to resolve URLs against

Default value: ''

Return Return

(string) Sanitized data

Source Source

File: wp-includes/class-simplepie.php

	 * <pre>
	 * // This is probably a bad example because we already support
	 * // <media:content> natively, but it shows you how to parse through
	 * // the nodes.

Advertisement

See also See also

Advertisement

Leave a Reply