return all non-tag characters
| From: | Matt Palermo | Date: | Sun, 22 Jun 2003 03:49:38 +0000 |
| Subject: | return all non-tag characters | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-152424@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. 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