My apologies if this is a stupid question, but I spent hours searching with no results.
I would like to look at the raw HTML of a document without it being rendered by the browser. Is there a DOM element that does this; or a method that disables rendering?
It's for a dumbed-down search engine that flips through a bunch of URLs looking for a particular character pattern.
I could use an iframe and then look at iframe.innerHTML but that slows things down and creates too much traffic as the browser loads ads and images.
The document sources are all over the web so AJAX is not on. PHP is a last resort.