How to display only the content of webpages(not any of the tags,links,image) by php script?
<p>I make one script, in that, I put one textbox and submit button, when user enter any url address or any link in this text box and press submit button.
At that time I want only pure text of this whole page that he enter in textbox.
It is live link, mean from direct to internet.
I used file_get_content() and strip_tags() but, it is provide me result with regular expression.
suppose I enter <a href="http://www.google.com" rel="nofollow">http://www.google.com</a>
than I got the output like,</p>

<pre><code>Google(function(){ window.google={kEI:"mDpyUZPbG4alrQed0oCQBQ",getEI:function(a){for(var b;a&amp;&amp;(!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&amp;&amp;-1==b.search("&amp;ei=")&amp;&amp;(g="&amp;ei="+google.getEI(h));c=c||"/gen_204?atyp=i&amp;ct="+a+"&amp;cad="+b+g+"&amp;zx="+google.time();a=/^http:/i; a.test(c)&amp;&amp;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
</code></pre>

<p>So I want only text of google page.
what Can I do?
any idea?
thanks inadvance...</p>
