strip_tags()
Posted: Sun Mar 26, 2006 12:54 pm
Hello,
I was wondering about the strip_tags() command in PHP. It seems to strip absolutely everything that begins with a <. For example:
<bob> - gone
<bob - gone
what's up> -stays (common typo btw)
Is there any way for it to strip only HTML tags, as opposed to random stuff like <bob>?
Thanks!
I was wondering about the strip_tags() command in PHP. It seems to strip absolutely everything that begins with a <. For example:
<bob> - gone
<bob - gone
what's up> -stays (common typo btw)
Is there any way for it to strip only HTML tags, as opposed to random stuff like <bob>?
Thanks!