8
Answers

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

Churchill A

Churchill A

14y
3.6k
1
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)