8
Reply

Extract first (n) number of paragraphs from a long text

Churchill A

Churchill A

Jul 24 2010 5:38 AM
3.3k
I have a long text from the db and I would like a method to only output the first 3 paragraphs or something like that. Its retrieved from the database and has HTML codes too. How do I go about this?

Answers (8)