Re: HTML 2 TEXT
| From: | nicos@php.net | Date: | Fri, 20 Sep 2002 14:27:49 +0000 |
| Subject: | Re: HTML 2 TEXT | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-117021@lists.php.net to get a copy of this message | ||
strip_tags() is the easiest way to remove HTML tags. If he wants to replace
them, then he can use ereg_replace or preg_replace().
--
Nicos - CHAILLAN Nicolas
nicos@php.net
www.WorldAKT.com - Hébergement de sites Internet
"Justin French" <justin@indent.com.au> a écrit dans le message de news:
B9B16A0C.11653%justin@indent.com.au...
> There's a perfect example in the manual:
> http://www.php.net/manual/en/function.preg-replace.php
>
> HTH
> Justin
>
>
> on 20/09/02 9:16 PM, SiTA WebMaster - VST (webmaster@sita.com.tr) wrote:
>
> > Try to remove all strings starting with "<" and ending with ">".
> > Be sure
> > not to remove "<A href ... ></A>"'s. Also you need to format
> > line
> > endings via "\n" or "<BR>".
> >
> > it might seem a little bit hard, but any other solution won't work
> > rather than this.
> >
> > Tim Haynes wrote:
> >
> >> Does anybody know of a class or a solution to converting an HTML page
to a
> >> text only page via PHP, but leaving in href links in and a certain
degree of
> >> formatting.
> >>
> >> Cheers,
> >>
> >> Tim
> >>
> >>
> >>
>