Re: Regex to erase HTML tags
| From: | Folke Ashberg | Date: | Mon, 27 Nov 2000 16:59:20 +0000 |
| Subject: | Re: Regex to erase HTML tags | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-27397@lists.php.net to get a copy of this message | ||
Hi!
just use strip_tags !
http://www.php.net/manual/function.strip-tags.php
regards
Folke
--
Folke Ashberg
Stage Internet Services GmbH
Technical Development
folke@fanstage.de
folke@fanstage.de | Tel: +49 89 454591-77 | Fax: +49 89 454591-71
Kreillerstr. 21 | 81673 Munich | Germany | www.fanstage.de
On Mon, 27 Nov 2000, rodrigo wrote:
> I wrote a small function to erase all the html from text in a variable.
> I had to write to regex to do it. I am sure there is a way to do it in
> one line.
>
> Anyone know how to do it?
>