SimplePie_Sanitize::set_url_replacements

Advertisement

Summery Summery

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

Syntax Syntax

SimplePie_Sanitize::set_url_replacements( array|null $element_attribute = null )

Description Description

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

Parameters Parameters

$element_attribute

(Optional) Element/attribute key/value pairs, null for default

Default value: null

Source Source

File: wp-includes/SimplePie/Sanitize.php

		$this->strip_comments = (bool) $strip;
	}

	public function set_output_encoding($encoding = 'UTF-8')
	{
		$this->output_encoding = (string) $encoding;
	}

	/**
	 * 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
	 *
	 * @since 1.0
	 * @param array|null $element_attribute Element/attribute key/value pairs, null for default
	 */
	public function set_url_replacements($element_attribute = null)
	{

Advertisement

Changelog Changelog

Changelog
Version Description
1.0 Introduced.

Advertisement

Leave a Reply