static function ConvertEmailToMailTo($text,$sanitize = false)
	{
		if ($sanitize) $text = VerySimpleStringUtil::Sanitize($text);
		$regex = "/([a-z0-9_\-\.]+)". "@" . "([a-z0-9-]{1,64})" . "\." . "([a-z]{2,10})/i";
		return preg_replace($regex, '<a href="mailto:\\1@\\2.\\3">\\1@\\2.\\3</a>', $text);
	}
static function ConvertEmailToMailTo($text,$sanitize = false)
	{
		if ($sanitize) $text = VerySimpleStringUtil::Sanitize($text);
		$regex = "/([a-z0-9_\-\.]+)". "@" . "([a-z0-9-]{1,64})" . "\." . "([a-z]{2,10})/i";
		return preg_replace($regex, '<a href="mailto:\\1@\\2.\\3">\\1@\\2.\\3</a>', $text);
	}
static function ConvertEmailToMailTo ( $ text , $ sanitize = false ) { if ( $ sanitize ) $ text = VerySimpleStringUtil :: Sanitize ( $ text ) ; $ regex = "/([a-z0-9_\-\.]+)" . "@" . "([a-z0-9-]{1,64})" . "\." . "([a-z]{2,10})/i" ; return preg_replace ( $ regex , '<a href="mailto:\\1@\\2.\\3">\\1@\\2.\\3</a>' , $ text ) ; }
Takes the given text and converts any email address into mailto links,
returning HTML content.

@param string $text
@param bool true to sanitize the text before parsing for display security
@return string HTML
Takes the given text and converts any email address into mailto links returning HTML content .