I am fetching some info via PHP from a webpage using simple_php_dom
and curl. The problem is that the page is not built correctly so the DOM object contains erroneous info.
How can I get the HTML file as a string in a PHP var so that I can run a regular expression through it?
Curl doesn't work as it is ignoring the bad part.
simple_html_dom.php
has the same issue.
wget
doesn't work since I don't have permissions for it on the server.