57 $string = str_replace( array_keys($myC), array_values($myC), $string);
107 $string = str_replace(array_keys($myAc), array_values($myAc), $string);
116 $string = str_replace( array_keys($myBrackets), array_values($myBrackets), $string);
119 $string = htmlentities($string);
122 $bad = array(
'\'',
'"',
'`',
'!',
'@',
'#',
'$',
'%',
'^',
'&',
'*',
'=',
'+',
'|',
'/',
'\\',
';',
':',
',',
'?');
123 $string = str_replace($bad,
'', $string);
126 $string = preg_replace(array(
'/\.+/',
'/\.+$/'), array(
'.',
''), $string);
129 $string = trim($string);
130 $string = preg_replace(
'/(\s)+/', PAGE_SPACER, $string);
136 $string = strtolower($string);
139 $string = str_replace(array(
'%2F',
'%'), array(
'/',
''), $string);
142 $string = str_replace( array_values($myBrackets), array_keys($myBrackets), $string);