Subversion Repositories eFlore/Applications.cel

Rev

Rev 473 | Rev 516 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 473 Rev 505
Line 267... Line 267...
267
	
267
	
Line 268... Line 268...
268
	private function creerTitre($element) {
268
	private function creerTitre($element) {
269
		
269
		
-
 
270
		$titre = '';
Line 270... Line 271...
270
		$titre = '';
271
		$titre = $element['nom_sel'].' [nn'.$element['num_nom_sel'].'] par '.$this->creerAuteur($element['identifiant']);
271
		$titre = $element['nom_sel'].' [nn'.$element['num_nom_sel'].'] par '.$this->creerAuteur($element['identifiant']);
272
		$titre = $this->nettoyerTexte($titre);
Line 272... Line -...
272
		
-
 
273
		return $titre;
-
 
274
	}
-
 
275
	
-
 
276
	protected function nettoyerTexte($txt) {
-
 
277
		$txt = preg_replace('/&(?!(a-z+|#0-9+|#x0-9a-f+);)/i', '&', $txt, -1);
273
		
278
		return $txt;
274
		return $titre;
279
	}
275
	}
280
	
276