How to extract text from web page?

PHP question: I know how to read the text on a web page through PHP code, but how can I extract the HTML...?

  • background code that generated the text on the web page? For instance, I would want to extract the http information from this: <h3 class="ens fontnormal"><a href="http://cgi.ebay.com/Lot-of-3-Cand y-The-Sweet-History-books -ISBN-1933112336_W0QQitem Z140248433383QQihZ004QQcategory Z46753QQss PageNameZWDVWQQrdZ1QQcmdZViewItem">Lot of 3 Candy The Sweet History books ISBN 1933112336</a></h3> (This HTML information gives me the Ebay item number which is not shown on the web page that I am viewing.)

  • Answer:

    left click and click on page source, or go to view and go to page source

Annie M at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.