8
Answers

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

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)