RE: [PHP] remove html tags in text?
| From: | Jim Moseby | Date: | Thu, 11 May 2006 15:48:23 +0000 |
| Subject: | RE: [PHP] remove html tags in text? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-235990@lists.php.net to get a copy of this message | ||
>
> Hello everyone,
>
> Say, if I have a paragraph like this:
>
> ==
> <h1>John Smith</h1>
>
> Dr. Smith is the directory of <a
> href="http://some.center.com">Some
> Center</a> . His research interests include <b>Wireless
> Security</b>....
> ==
>
> Any functions that can help remove all the HTML tags in it?
> What about
> just removing selected tags, like <b></b>?
>
Sounds like a job for.....
http://us2.php.net/strip_tags
JM