Title says all. How can I get the text between HTML nodes using PHP? Any ideas? Below is my HTML structure.
<html>
<head>
<title>Test Page</title>
</head>
<body>
<div id="outer">
<div id="first">
<p class="this">Hello</p>
<p class="this">Community</p>
</div>
<div id="second">
<p class="that">Stack</p>
<p class="that">Overflow</p>
</div>
</div>
</body>
Expected output:
HelloStackOverflowCommunity