/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; |
} |