]> git.mxchange.org Git - friendica.git/commitdiff
make full title without dots
authorrabuzarus <>
Wed, 10 Jun 2015 22:43:34 +0000 (00:43 +0200)
committerrabuzarus <>
Wed, 10 Jun 2015 22:43:34 +0000 (00:43 +0200)
boot.php

index 57f2315781000389bb51294e6d993ba8d53912f0..ac3e950a952b3e024c71665c4045aeadae6cd1ba 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -1858,7 +1858,10 @@ if(! function_exists('get_events')) {
                                        $md = datetime_convert('UTC','UTC',$rr['start'],'Y/m');
                                $md .= "/#link-".$rr['id'];
 
-                               $title = substr($rr['summary'],0,32) . '... ';
+                               $title = strip_tags(html_entity_decode(bbcode($rr['summary']),ENT_QUOTES,'UTF-8'));
+
+                               if(strlen($title) > 35)
+                                       $title = substr($title,0,32) . '... ';
 
                                $description = substr(strip_tags(bbcode($rr['desc'])),0,32) . '... ';
                                if(! $description)