How can I get html source code from an external web page?
Something like: getHtml('http://google.com');
.
I've tried to get content of iframe using: $("#frame").contents().find("html");
, but if in my case the webpage doesn't have html tags, just 1 line of text. I can't do it with php file_get_contents()
because it doesn't keep session data.