Suppression élément prepareString
This commit is contained in:
parent
df6e5946be
commit
eb036cbd5a
@ -127,18 +127,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function prepareString($str) {
|
function prepareString($str) {
|
||||||
$tabReplace=array();
|
|
||||||
for($c=0;$c<32; $c++)
|
|
||||||
$tabReplace[''.chr($c)]='';
|
|
||||||
for($c=127;$c<256; $c++)
|
|
||||||
$tabReplace[''.chr($c)]='';
|
|
||||||
|
|
||||||
return strtr(
|
$tabReplace = array(
|
||||||
strtr(htmlentities(utf8_decode(strtr(strtr($str, 'àáâãäåæçèéêëìíîïðñòóôõöùúûüýÿÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖÙÚÛÜÝ
',
|
'œ' => "oe",
|
||||||
"aaaaaaaceeeeiiiionooooouuuuyyAAAAAAACEEEEIIIIONOOOOOUUUUYY.''"), array(''=>'oe'))), ENT_QUOTES, 'ISO-8859-1'),array(''=>'€',''=>'"')),
|
''.chr(160) => '',
|
||||||
$tabReplace);
|
);
|
||||||
//return */
|
|
||||||
//return utf8_encode($str);
|
return strtr($str,$tabReplace);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user