note 77251 deleted from function.strlen by danbrown
| From: | danbrown@php.net | Date: | Thu, 12 Feb 2009 03:12:26 +0000 |
| Subject: | note 77251 deleted from function.strlen by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-150532@lists.php.net to get a copy of this message | ||
Note Submitter: mail4adry at inwind dot it
----
// Strip all tags except links
$desc = strip_tags(html_entity_decode($description), "<a>");
// Cut the line to the right length
if(strlen_nohtml($desc) > 72)
$desc = substr($desc, 0 , 71+strlen_html($desc))."…";
output something like a text interrupted by ... at car #71 containing active links