TinyPortal
Development => Support => Topic started by: dannbass on November 01, 2007, 07:45:54 PM
Hi! How could I do to specify a length in the $topic['short_subject']
For example if I have
<a href="'.$topic['href'].'">'.$topic['short_subject'];
I did some search and found this
strlen(un_htmlspecialchars($topic['short_subject'])) > 18 ? htmlspecialchars(substr(un_htmlspecialchars($topic['short_subject']), 0, 18) . '...') : $topic['short_subject'];
But I don't know how implement both...
Thanks