开发者

Processing Non-Well-Formed HTML with DOM

I have got a HTML which has obtained from a web site's source code. Im sending data with post method from my page to the web site, and 开发者_如何学Gothe response is source code. I need some text in the source.

The document is non-well-formed. So, i can not use DOM, and i can not separate tag and data with DOM. How can i separate tag and data, and how can i get the only data?

I'm using PHP.

Thanks.


I found something about getting data from html source code. I said in question, im using PHP. I will use preg_match_all function and regular expression. Hopefully, i can overcome ;)

Thx to all who interested ;)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜