Re: return all non-tag characters
| From: | Pete Morganic | Date: | Tue, 24 Jun 2003 17:56:15 +0000 |
| Subject: | Re: return all non-tag characters | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-152640@lists.php.net to get a copy of this message | ||
try
http://uk2.php.net/strip_tags
pete
Matt Palermo 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. Is there a way to just throw out everything from the < to the > and just keep everything that is NOT located inside any <> characters? Anyone have any ideas on how this can be done? Please let me know. Thanks, Matt