WordPress at Your Fingertips
function is not described

Snoopy::_stripform() public WP 1.0

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

No Hooks.

Return

null. Nothing.

Usage

$Snoopy = new Snoopy();
$Snoopy->_stripform( $document );
$document (required)
-

Code of Snoopy::_stripform() WP 5.8.2

function _stripform($document)
{
	preg_match_all("'<\/?(FORM|INPUT|SELECT|TEXTAREA|(OPTION))[^<>]*>(?(2)(.*(?=<\/?(option|select)[^<>]*>[\r\n]*)|(?=[\r\n]*))|(?=[\r\n]*))'Usi",$document,$elements);

	// catenate the matches
	$match = implode("\r\n",$elements[0]);

	// return the links
	return $match;
}