WordPress at Your Fingertips
function is not described

SimplePie_Sanitize::strip_attr() protected WP 1.0

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

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->strip_attr( $attrib, $xpath );
$attrib (required)
-
$xpath (required)
-

Code of SimplePie_Sanitize::strip_attr() WP 5.8.2

protected function strip_attr($attrib, $xpath)
{
	$elements = $xpath->query('//*[@' . $attrib . ']');

	foreach ($elements as $element)
	{
		$element->removeAttribute($attrib);
	}
}