Nitroware Posted January 30, 2008 Share Posted January 30, 2008 Is there a way of taking a long article, and making ajax, or JS only allow 7 or so allowed lines, with a ... at the end? I know how to count characters, but that doesnt include <br>'s and <p>'s in the amount of characters. So if the line is short then breaks, it doesnt count the whitespace created. Any help? Link to comment https://forums.phpfreaks.com/topic/88494-limiting-allowed-amount-of-lines/ Share on other sites More sharing options...
phpQuestioner Posted January 30, 2008 Share Posted January 30, 2008 try checking the strings length. you can encode the html characters; if needed. Link to comment https://forums.phpfreaks.com/topic/88494-limiting-allowed-amount-of-lines/#findComment-452999 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.