Tedd Sperling
2013-07-20 16:25:14 UTC
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
_____________________
***@sperling.com
http://sperling.com
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
_____________________
***@sperling.com
http://sperling.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php