So I've learned parsing html with jQuery but now I'd like to know the pure javascript method.
A typical jQuery parse in my use would look like
function parse(obj) {
// Parse the html
var htm = $.parseHTML(obj, true);
// reference whatever element I want in said parsed html
$('#id', htm).text();
}
what would be the javascript equivalent of this? I'm mostly confused at referencing the parsed object in pure javascript vs jQuery.
Edit: This is being executed in a userscript, so I'd prefer not to add any dummy elements to the DOM of the site it's running on.