strip_tags

[email protected] (Tedd Sperling)
Newsgroups php.general
Message-ID <[email protected]>
Hi gang:

I've been using

    $str = strip_tags($str, $allowable)

as it is described via the manuals:

http://php.net/manual/en/function.strip-tags.php

The problem I've found is the tags "<br>" and "<br />" are not stripped.

How do you strip all tags, but leave some tags (such as <b>, <i>, and <u> -- I know these are depreciated, but my client wants them anyway).

Cheers,

tedd

_____________________
[email protected]
http://sperling.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.