Subversion Repositories eFlore/Applications.cel

Rev

Rev 489 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 489 Rev 504
Line 289... Line 289...
289
		}
289
		}
290
		return $tableau;
290
		return $tableau;
291
	}
291
	}
Line 292... Line 292...
292
	
292
	
293
	protected function nettoyerTexte($txt) {
293
	protected function nettoyerTexte($txt) {
294
		$txt = preg_replace('/&(?!(a-z+|#0-9+|#x0-9a-f+);)/i', '&', $txt);
294
		$txt = preg_replace('/&(?!([a-z]+|#[0-9]+|#x[0-9][a-f]+);)/i', '&', $txt);
295
		$txt = preg_replace('/000null/i', '', $txt);
295
		$txt = preg_replace('/^(?:000null|null)$/i', '', $txt);
296
		return $txt;
296
		return $txt;
Line 297... Line 297...
297
	}
297
	}
298
	
298