Snoopy::_stripform

Advertisement

Syntax Syntax

Snoopy::_stripform( $document )

Source Source

File: wp-includes/class-snoopy.php

	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;
	}

Advertisement

Advertisement

Leave a Reply