WordPress at Your Fingertips
function is not described

SimplePie_Sanitize::do_strip_htmltags() public WP 1.0

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

No Hooks.

Return

null. Nothing.

Usage

$SimplePie_Sanitize = new SimplePie_Sanitize();
$SimplePie_Sanitize->do_strip_htmltags( $match );
$match (required)
-

Code of SimplePie_Sanitize::do_strip_htmltags() WP 5.8.2

public function do_strip_htmltags($match)
{
	if ($this->encode_instead_of_strip)
	{
		if (isset($match[4]) && !in_array(strtolower($match[1]), array('script', 'style')))
		{
			$match[1] = htmlspecialchars($match[1], ENT_COMPAT, 'UTF-8');
			$match[2] = htmlspecialchars($match[2], ENT_COMPAT, 'UTF-8');
			return "<$match[1]$match[2]>$match[3]</$match[1]>";
		}
		else
		{
			return htmlspecialchars($match[0], ENT_COMPAT, 'UTF-8');
		}
	}
	elseif (isset($match[4]) && !in_array(strtolower($match[1]), array('script', 'style')))
	{
		return $match[4];
	}
	else
	{
		return '';
	}
}