static function ConvertUrlToLink($text,$sanitize = false)
	{
		if ($sanitize) $text = VerySimpleStringUtil::Sanitize($text);
		$regex = "/[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]/i";
		return preg_replace($regex, '<a href=\"\\0\">\\0</a>', $text);
	}
static function ConvertUrlToLink($text,$sanitize = false)
	{
		if ($sanitize) $text = VerySimpleStringUtil::Sanitize($text);
		$regex = "/[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]/i";
		return preg_replace($regex, '<a href=\"\\0\">\\0</a>', $text);
	}
static function ConvertUrlToLink ( $ text , $ sanitize = false ) { if ( $ sanitize ) $ text = VerySimpleStringUtil :: Sanitize ( $ text ) ; $ regex = "/[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]/i" ; return preg_replace ( $ regex , '<a href=\"\\0\">\\0</a>' , $ text ) ; }
Takes the given text and converts any URLs into 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 URLs into links returning HTML content .