Kian Posted January 23, 2010 Share Posted January 23, 2010 Hello Just a little bug in announcements.php If you use blod in the article in the preview availabe at announcements.php you have all text with blod. 0 Quote Link to comment Share on other sites More sharing options...
rmccny Posted January 23, 2010 Share Posted January 23, 2010 I've brought this up before, it's a simple fix... Open the announcements.tpl and change {$announcement.text|truncate:200:"..."} To {$announcement.text|strip_tags|truncate:200:"..."} That will strip out all HTML before truncating the text to 200 characters. There is no reliable way to truncate and maintain HTML tags without a ton of programming involved. 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted January 23, 2010 Author Share Posted January 23, 2010 Nice. Thank you 0 Quote Link to comment Share on other sites More sharing options...
rmccny Posted January 23, 2010 Share Posted January 23, 2010 You're welcome. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.