the striptag function is what I think you want, it just removes all HTML
tags and returns whatever is left
php.net/striptag

Andrew
----- Original Message -----
From: "Charles Fowler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, August 28, 2002 2:58 PM
Subject: [PHP] How can I strip the code from HTML pages to extract the
contents of a HTML page.


> This may be an interesting challenge for someone or has it been done
> before
>
> Can some one help me.
>
> I am looking for a laboursaving method of extracting the contents of a
> web page (Text only) and dumping the rest of the html code.
>
> I need the contents to rework the pages and put the contents into flat
> file database. Large but only two columns of data. Simple to work with
> (no need for DB) - They are just alot of links on a links page.
>
> Scripts would be welcome.
>
> Ciao, Carlos
>
>
>
>


--------------------------------------------------------------------------
------


> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to