SimplePie_Sanitize::do_strip_htmltags

Advertisement

Syntax Syntax

SimplePie_Sanitize::do_strip_htmltags( $match )

Source Source

File: wp-includes/SimplePie/Sanitize.php

		if (!is_array($this->strip_htmltags) || !in_array($tag, $this->strip_htmltags))
		{
			$elements = $document->getElementsByTagName($tag);
			foreach ($elements as $element)
			{
				foreach ($attributes as $attribute)
				{
					if ($element->hasAttribute($attribute))
					{
						$value = $this->registry->call('Misc', 'absolutize_url', array($element->getAttribute($attribute), $this->base));
						if ($value !== false)
						{
							$element->setAttribute($attribute, $value);
						}
					}
				}
			}
		}
	}

	public function do_strip_htmltags($match)
	{
		if ($this->encode_instead_of_strip)
		{

Advertisement

Advertisement

Leave a Reply