Re: How can I strip the code from HTML pages to extract thecontents of a HTML page.

From: Date: Fri, 30 Aug 2002 00:14:59 +0000
Subject: Re: How can I strip the code from HTML pages to extract thecontents of a HTML page.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-114570@lists.php.net to get a copy of this message
I was looking into stripping HTML files that contain alot of links. I was trying to avoid the manual way of data entry. The contents i need are the name of the link (plain text which sits out side the HTML code) and all the a href tags. I would like the a href (ie.the hyperlink) tags to be displayed on the HTML output as plain text. All other HTML tags would be kept in place. The reason why I am doing this is that I am placing a link's name and the http:// link in to flat files, where they can be updated just by appending to them. The srcipt that I have does the rest. I have looked into the functions suggested but do find the concepts and use of the opperators to strip the HTML involved esoteric and tricky. ¬¬Chuck¬¬

« previous php.general (#114570) next »