Re: Stripping HTML

From: Date: Mon, 21 Aug 2000 19:29:32 +0000
Subject: Re: Stripping HTML
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-12796@lists.php.net to get a copy of this message
Chris Murley writes: > > > Hello, does anybody have a function that strips HTML from a string > > ie > > $message = "<b> hellow wolrd> > > would come out as > $message = " hellow wolrd" > ?? > or that would make > > $message = "<a href=idex.html>Click here</a>"; > > would be > > $message = "Click here"; > > > Thanks for any help! > > > Chris Try this: http://www.php.net/manual/function.strip-tags.php. Cheers, Torben -- +----------------------------------------------------------------+ |Torben Wilson <torben@php.net> Netmill iTech| |http://www.coastnet.com/~torben http://www.netmill.fi| |Ph: 1 250 383-9735 torben@netmill.fi| +----------------------------------------------------------------+

« previous php.general (#12796) next »