title: how to get body content in joomla site
body: <p>I'm trying to find all the images in a Joomla site page. I plan to use the following code:</p>
  
  <p><code>preg_match('/&lt;img.+src=[\'"]([^\'"]+)[\'"].*&gt;/i', $pageBody, $imageArray);</code></p>
  
  <p>I believe that the above code would work if I was able to assign the <code>&lt;body&gt;</code> content of the page to the variable <code>$pageBody</code>. But I can't find the right method to do it.</p>
  
  <p>I've found <code>JApplicationWeb</code> and <code>JApplicationSite</code>but I wasn't able to do it.</p>
  
  <p>I'm using Joomla 3.7.4.</p>