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 ;)
精彩评论