开发者

Processing Non-Well-Formed HTML with DOM

开发者 https://www.devze.com 2023-02-06 18:47 出处:网络
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

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

精彩评论

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

关注公众号