$.ajax({ url: "http://example.com", dataType: 'text', success: function(data) { var elements = $("meta").html(data)[0].getElementsByTagName("head"); for(var i = 0; i < elements.length; i++) { var theText = elements[i].firstChild.nodeValue; console.log(theText); } } });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)