I want to pull html from a remote site into a div container using a server side script so I can use jquery to pull values from certain elements on the page. E.g. Meta tags / Page title etc.
Is there a way to prevent the HTML from actually running whilst still being able to use jQuery selectors?
Could I parse the remote content as escapable json?
You can load the HTML directly into a jQuery object without it being added to your page:
I have put one
divtag in there – but you could place the whole lot in there and then run jQuery operations against it and never add it to your HTML page.