Re: return all non-tag characters

From: Date: Sun, 22 Jun 2003 06:17:04 +0000
Subject: Re: return all non-tag characters
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-152430@lists.php.net to get a copy of this message
Everything you need is at: http://www.php.net/manual/en/function.strip-tags.php Cheers, Rob. Mike Migurski wrote: > > >I want to be able to retrieve and return all character that are not > >located in html tags. For example: > > > ><font size=\"3\" color=\"#336699\">1234567</font> > >or > ><marquee>1234567</marquee> > > > >I would just like it to be equal to 1234567, but I would need it to work > >with any tags and attributes. > > A good starting point might be preg_replace, search pattern '/<[^>]+>/', > replace pattern ''. > > --------------------------------------------------------------------- > michal migurski- contact info and pgp key: > sf/ca http://mike.teczno.com/contact.html > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- .---------------------------------------------. | Worlds of Carnage - http://www.wocmud.org | :---------------------------------------------: | Come visit a world of myth and legend where | | fantastical creatures come to life and the | | stuff of nightmares grasp for your soul. | `---------------------------------------------'

« previous php.general (#152430) next »