I am using jquery to get the data from one web page and show it in another page. Basically, I have a string that includes the html code of the page such as:
var str = '<head><title>some title</title><head><body><div class="main"><div id="inner"></div></div></body>';
and I need to get the content of "#inner" from str. How to is this possible? I am looking for some solution that is fast, short and without using a lot of memory.