Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 503 → Rev 504

/trunk/jrest/services/Cel.php
291,8 → 291,8
}
protected function nettoyerTexte($txt) {
$txt = preg_replace('/&(?!(a-z+|#0-9+|#x0-9a-f+);)/i', '&', $txt);
$txt = preg_replace('/000null/i', '', $txt);
$txt = preg_replace('/&(?!([a-z]+|#[0-9]+|#x[0-9][a-f]+);)/i', '&', $txt);
$txt = preg_replace('/^(?:000null|null)$/i', '', $txt);
return $txt;
}