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? Quote Link to comment 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. 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.