english/plugins/content/emailcloak/emailcloak.php
/**
	 * Genarate a search pattern based on link and text.
	 *
	 * @param	string	The target of an email link.
	 * @param	string	The text enclosed by the link.
	 * @return	string	A regular expression that matches a link containing the parameters.
	 */
Genarate a search pattern based on link and text.
@param       string  The target of an email link.
@param       string  The text enclosed by the link.
@return      string  A regular expression that matches a link containing the parameters.
Genarate a search pattern based on link and text . @param string The target of an email link . @param string The text enclosed by the link . @return string A regular expression that matches a link containing the parameters .
protected function _getPattern ($link, $text) {
		$pattern = '~(?:<a [\w "\'=\@\.\-]*href\s*=\s*"mailto:'
			. $link . '"[\w "\'=\@\.\-]*)>' . $text . '</a>~i';
		return $pattern;
	}
protected function _getPattern ( $ link , $ text ) { $ pattern = '~(?:<a [\w "\'=\@\.\-]*href\s*=\s*"mailto:' . $ link . '"[\w "\'=\@\.\-]*)>' . $ text . '</a>~i' ; return $ pattern ; }
Genarate a search pattern based on link and text.
Genarate a search pattern based on link and text .