Re: return all non-tag characters

From: Date: Sun, 22 Jun 2003 04:06:01 +0000
Subject: Re: return all non-tag characters
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-152425@lists.php.net to get a copy of this message
>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

« previous php.general (#152425) next »