WordPress at Your Fingertips
function is not described

SimplePie_Sanitize::set_url_replacements() public WP 1.0

Set element/attribute key/value pairs of HTML attributes containing URLs that need to be resolved relative to the feed

Defaults to |a|@href, |area|@href, |blockquote|@cite, |del|@cite,
|form|@action, |img|@longdesc, |img|@src, |input|@src, |ins|@cite,
|q|@cite

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

No Hooks.

Return

null. Nothing.

Usage

$SimplePie_Sanitize = new SimplePie_Sanitize();
$SimplePie_Sanitize->set_url_replacements( $element_attribute );
$element_attribute(array|null)
Element/attribute key/value pairs, null for default
Default: null

Changelog

Since 1.0 Introduced.

Code of SimplePie_Sanitize::set_url_replacements() WP 5.8.2

public function set_url_replacements($element_attribute = null)
{
	if ($element_attribute === null)
	{
		$element_attribute = array(
			'a' => 'href',
			'area' => 'href',
			'blockquote' => 'cite',
			'del' => 'cite',
			'form' => 'action',
			'img' => array(
				'longdesc',
				'src'
			),
			'input' => 'src',
			'ins' => 'cite',
			'q' => 'cite'
		);
	}
	$this->replace_url_attributes = (array) $element_attribute;
}