Re: removing html...
| From: | JJ Harrison | Date: | Sat, 27 Jul 2002 23:34:09 +0000 |
| Subject: | Re: removing html... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-110012@lists.php.net to get a copy of this message | ||
Thanks,
I had never used regular expressions before and will look into them a bit
more.
--
JJ Harrison
webmaster@tececo.com
www.tececo.com
"Jj Harrison" <webmaster@tececo.com> wrote in message
news:20020727133846.20237.qmail@pb1.pair.com...
> Hi,
>
> I have search around on google/php.net to try and find a way to remove
> <body>, everything above ,</body> and everything below it in a html page.
>
> eg.
>
> <html>
> <head>
> <title>test</test>
> </head>
> <body>
> Blah Blah Blah<br>
> </body>
> </html>
>
> would become: Blah Blah Blah<br>
>
> I know how to use php to convert html to pure text etc but I don't know
how
> to remove the unwanted header and footer HTML.
>
> I am pretty sure that someone must have done it(HTML file uploads for
sites
> etc).
>
> Thanks in advance and good night.
>
>
> --
> JJ Harrison
> webmaster@tececo.com
> www.tececo.com
>
>
>