Get X Paragraphs

Sometimes I just want to get X paragraphs from a block of content, usually from a WordPress WYSIWYG. Here is a basic function to do just that. It isn’t a one size fits all solution, but it should work with most blocks of content.

There is a lot of room for more precise filtering and tag stripping if that is required.