How do I extract only the content between all of the <p></p> tags in a given string? I know preg_match or regex but I spent hours already trying to put this stuff together. thought I’d just ask. simple question and a simple answer i hope. Thanks in advance. this would be in PHP, btw.
How do I extract only the content between all of the <p></p> tags in
Share
DOMDocument::loadHTML. Maybe not the fastest option, but should be simple.
Something like (it’s been a while since I’ve actually written PHP…):