I have a string containing html code, I want to get from it elements by css selectors like I do with angular.element without displaying it on the page.
How can I do that ?
EDIT
for instance, I have this variable:
var s = '<div id="hello">Hello</div><div id="world">World</div>';
Is there any way to get the div wih id='world' ? like:
s.function('#world');