How to Remove First Paragraph from Every Post

I’m importing an RSS feed that has a lot of useless gibberish included in the first paragraph of every entry.

I’m wondering what functions I would use to strip this out. Maybe strpos() to find the first positions of opening <p> and the closing </p> tags?

Is this a practical strategy to start with? If so, I could use some help with the following step of stripping the content out.

What’s the source (or nature of) the gibberish?

The first paragraph shows only an entry title and an encoded city/state/country location. None of it is needed as I’m already grabbing that info from other elements.

No thoughts on this? I imagine it would only require the call of two or three different functions. I’m just unsure of what those functions would be apart from the strpos() to find the positions of the opening <p> tag and the closing </p>.

Any help would be greatly appreciated.

maestro360, it is usually helpful to give an example or two of the problematic input (your feed items) and a clear description of what you want to do (you’ve done this part).

Without having seen the input: explode on </p>, throw away the first item of the array (array_shift into nothing), and then implode the array on </p> again.

If there’s any information before the first paragraph you need to keep, then we have more work to do.

Thank you all for your comments, especially Starlion. I think you found my solution, and it’s even more simple than the direction I originally was originally going.