In one of my webpage instead of showing a very large text from the database, i am showing some part it ending with "[....]Click to read more" using the code:
substr($rowTSD['ts_full_story_p1'],0,150).'[...]'.
It is working fine but as expected it cut shorts a word very often, which does not look good.Is it possible by php or javascript to intelligently truncate a paragraph ahead of a word or after it.Hope you understand my question.