strip_tags function [message #178737] |
Thu, 26 July 2012 17:18 |
Tim Fardell
Messages: 5 Registered: July 2012
Karma:
|
Junior Member |
|
|
Hello all!
I'm very much a PHP beginner, so please bear with me :-)
I have a need to remove all HTML tags from a string, and rather than re-invent
the wheel, I thought I'd see if there was an existing function that could do
this. Superficially, strip_tags() appears to do exactly what I need.
However, am I right in thinking that the strip_tags() function simply assumes
that any less-than character (<) occurring within a string is the beginning of a
tag?
I hope I'm wrong, because that would be completely crap and useless :-)
--
Please remove all-your-clothes before replying.
|
|
|