In d3 version 3, I had this code, which worked great:
d3.html("http://google.com",function(frag){
console.log(frag);
});
That code doesn't work in version 4. So looking at the API and change log, I thought perhaps this:
d3.html("http://www.google.com").get(function(error,frag){ console.log(frag); });
But this doesn't work either. Does anyone have a working example of d3.v4 for d3.html?
Thanks