diff --git a/public/index.php b/public/index.php index 55f2a44..666d1b9 100644 --- a/public/index.php +++ b/public/index.php @@ -208,7 +208,7 @@ catch (Exception $ex){ foreach ($politicaNews as $politica){ $i++; $stringTitolo = (strlen($politica->titolo) > 53) ? htmlentities( substr( html_entity_decode( $politica->titolo ) ,0,50) ).'...' : $politica->titolo; - $string = (strlen($politica->sottotitolo) > 33) ? htmlentities( substr( html_entity_decode( $politica->sottotitolo ),0,30) ).'...' : $politica->sottotitolo;?> + $string = (strlen($politica->sottotitolo) > 33) ? htmlentities( substr( html_entity_decode( $politica->sottotitolo ) ,0,30) ).'...' : $politica->sottotitolo;?>
titolo) > 53) ? substr($cronaca->titolo,0, 50).'...' : $cronaca->titolo; - $string = (strlen($cronaca->sottotitolo) > 33) ? substr($cronaca->sottotitolo,0,30).'...' : $cronaca->sottotitolo;?> + $stringTitolo = (strlen($cronaca->titolo) > 53) ? htmlentities( substr( html_entity_decode( $cronaca->titolo ) ,0, 50) ).'...' : $cronaca->titolo; + $string = (strlen($cronaca->sottotitolo) > 33) ? htmlentities( substr( html_entity_decode($cronaca->sottotitolo ) ,0,30) ).'...' : $cronaca->sottotitolo;?>
titolo) > 53) ? substr($sport->titolo,0,50).'...' : $sport->titolo; - $string = (strlen($sport->sottotitolo) > 33) ? substr($sport->sottotitolo,0,30).'...' : $sport->sottotitolo;?> + $stringTitolo = (strlen($sport->titolo) > 53) ? htmlentities( substr( html_entity_decode( $sport->titolo ) ,0,50) ).'...' : $sport->titolo; + $string = (strlen($sport->sottotitolo) > 33) ? htmlentities( substr( html_entity_decode( $sport->sottotitolo ) ,0,30) ).'...' : $sport->sottotitolo;?> titolo) > 53) ? substr($saluteNews->titolo,0,50).'...' : $saluteNews->titolo;?> + $stringTitle = (strlen($saluteNews->titolo) > 53) ? htmlentities( substr( html_entity_decode( $saluteNews->titolo ) ,0,50) ) .'...' : $saluteNews->titolo;?> @@ -369,8 +369,8 @@ catch (Exception $ex){ $i = 0; foreach($gossipNews as $gossip){ $i++; - $stringTitle = (strlen($gossip->titolo) > 53) ? substr($gossip->titolo,0,50).'...' : $gossip->titolo; - $stringSubTitle = (strlen($last->sottotitolo) > 23) ? substr($last->sottotitolo,0,20).'...' : $last->sottotitolo;?> + $stringTitle = (strlen($gossip->titolo) > 53) ? htmlentities( substr( html_entity_decode( $gossip->titolo ) ,0,50) ) .'...' : $gossip->titolo; + $stringSubTitle = (strlen($last->sottotitolo) > 23) ? htmlentities( substr( html_entity_decode( $last->sottotitolo ) ,0,20) ) .'...' : $last->sottotitolo;?> @@ -391,7 +391,7 @@ catch (Exception $ex){
titolo) > 53) ? substr($elezioni->titolo,0,50).'...' : $elezioni->titolo;?> + $stringTitle = (strlen($elezioni->titolo) > 53) ? htmlentities( substr( html_entity_decode( $elezioni->titolo ) ,0,50) ) .'...' : $elezioni->titolo;?> @@ -411,7 +411,7 @@ catch (Exception $ex){
titolo) > 53) ? substr($lastViaggi->titolo,0,50).'...' : $lastViaggi->titolo;?> + $stringTitle = (strlen($lastViaggi->titolo) > 53) ? htmlentities( substr( html_entity_decode( $lastViaggi->titolo ) ,0,50) ) .'...' : $lastViaggi->titolo;?> @@ -430,7 +430,7 @@ catch (Exception $ex){
titolo) > 53) ? substr($animalNews->titolo,0,50).'...' : $animalNews->titolo;?> + $stringTitle = (strlen($animalNews->titolo) > 53) ? htmlentities( substr( html_entity_decode( $animalNews->titolo ) ,0,50) ) .'...' : $animalNews->titolo;?>