I am using the file_get_contents to access data on a page that I was given permission to scrape.
I am using the preg_match to find the data that I'm looking for in the markup.
But when I print the scrapped data I also get the markup I used to find the data.
Here is my code
Ho can I make it when I echo the $output string it omits the <p class="content"> & </p>
$url = "http://mysite.com";
$raw = file_get_contents($url);