um just use selectors? :S
http://www.w3schools.com/jquery/jquery_selectors.asp
sorry if i dont understand but what u wanna do is get a certain div out of text well an entire html file can be considered one big string since browsers usually ignore unnecessary whitespace.