开发者

reading only text from Html using PHP

开发者 https://www.devze.com 2022-12-22 06:24 出处:网络
i read the meta tags from a PHP script that read the url convert it to html and then read the tags and title .................for this no problem but the problem is i wants to read only the text from

i read the meta tags from a PHP script that read the url convert it to html and then read the tags and title .................for this no problem but the problem is i wants to read only the text from html............... for Example when you put a link on facebook you can see that i read's your Title and some text from your webpage url.

like the google does while search the web page.

i wants to know that how开发者_开发百科 can i write a script that work like a facebook book mark.........


Use DOMDocument::loadHTML

0

精彩评论

暂无评论...
验证码 换一张
取 消