How to display only the content of webpages(not any of the tags,links,image) by php script? -


i make 1 script, in that, put 1 textbox , submit button, when user enter url address or link in text box , press submit button. @ time want pure text of whole page enter in textbox. live link, mean direct internet. used file_get_content() , strip_tags() but, provide me result regular expression. suppose enter http://www.google.com got output like,

google(function(){ window.google={kei:"mdpyuzpbg4alrqed0ocqbq",getei:function(a){for(var b;a&&(!a.getattribute||!(b=a.getattribute("eid")));)a=a.parentnode;return b||google.kei},https:function(){return"https:"==window.location.protocol},kexpi:"17259,39523,4000116,4001569,4001948,4001959,4003060,4003551,4003917,4003921,4004067,4004257,4004334,4004341,4004545,4004653,4004687,4004719,4004746,4004788,4004812,4004844,4004897,4004898,4004914,4004917,4004949,4004972,4005101,4005154,4005198,4005213,4005251,4005447,4005588,4005597,4005601,4005650,4005654,4005688,4005743,4005841,4006348,4006356",kcsi:{e:"17259,39523,4000116,4001569,4001948,4001959,4003060,4003551,4003917,4003921,4004067,4004257,4004334,4004341,4004545,4004653,4004687,4004719,4004746,4004788,4004812,4004844,4004897,4004898,4004914,4004917,4004949,4004972,4005101,4005154,4005198,4005213,4005251,4005447,4005588,4005597,4005601,4005650,4005654,4005688,4005743,4005841,4006348,4006356",ei:"mdpyuzpbg4alrqed0ocqbq"},authuser:0,ml:function(){},khl:"en",time:function(){return(new date).gettime()},log:function(a,b,c,h){var d=new image,f=google.lc,e=google.li,g="";d.onerror=d.onload= d.onabort=function(){delete f[e]};f[e]=d;!c&&-1==b.search("&ei=")&&(g="&ei="+google.getei(h));c=c||"/gen_204?atyp=i&ct="+a+"&cad="+b+g+"&zx="+google.time();a=/^http:/i; a.test(c)&&google.https()?(google.ml(error("glmm"),!1,{src:c}),delete f[e]):(d.src=c,google.li=e+1)},lc:[],li:0,toolbelt:{},y:{},x:function(a,b){google.y[a.id]=[a,b];return!1},load:function(a,b){google.x({id:"l"+a},function(){google.load(a,b)})}};})(); (function(){var d=!1;google.sn="webhp";google.timers={};google.starttick=function(a,b){google.timers[a]={t:{start:google.time()},bfr:!!b}};google.tick=function(a,b,h){google.timers[a]||google.starttick(a);google.timers[a].t[b]=h||google.time()};google.starttick("load",!0); try{}catch(e){}})(); var _gjwl=location;function _gjuc(){var a=_gjwl.href.indexof("#");if(0 

so want text of google page. can do? idea? inadvance...


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -