$.getJSON('http://allorigins.me/get?url=https%3A//adsensesponsor.blogspot.com/2018/05/text.html&callback=?', function(data){ $('#output').html(data.contents); }); $.getJSON('http://allorigins.me/get?url=' + encodeURIComponent('http://google.com') + '&callback=?', function(data){ alert(data.contents); });