src/Tao/Html/Modifiers.php
public static function strToUrl($string, $bWithSlashes = true)
	{
		$string = self::deaccent($string);
		$string = preg_replace('/[^A-Za-z0-9_\s\'\:\/[\]-]/', '', $string);

		return self::tidyUrl($string, $bWithSlashes);
	}
public static function strToUrl($string, $bWithSlashes = true)
	{
		$string = self::deaccent($string);
		$string = preg_replace('/[^A-Za-z0-9_\s\'\:\/[\]-]/', '', $string);

		return self::tidyUrl($string, $bWithSlashes);
	}
public static function strToUrl ( $ string , $ bWithSlashes = true ) { $ string = self :: deaccent ( $ string ) ; $ string = preg_replace ( '/[^A-Za-z0-9_\s\'\:\/[\]-]/' , '' , $ string ) ; return self :: tidyUrl ( $ string , $ bWithSlashes ) ; }
String to URL

Transforms a string to a proper URL.

@copyright Copyright (c) 2003-2013 Olivier Meunier & Association Dotclear
@license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html

@param string $string String to transform
@param boolean $bWithSlashes in URL
@return string
String to URL