Page 1 of 1

Post Data + Strip html tags

Posted: Sun Jan 07, 2007 12:38 pm
by thiscatis
I've been trying this to work for some time now.. don't know what I'm doing wrong.
I have some post data I convert to variables.
I put all of this variables in an array and then I use the foreach statement and the strip_tags() to strip the html tags.

Doesn't work tho..?

Does anyone know a better solution?

Posted: Sun Jan 07, 2007 12:57 pm
by feyd
You have to reassign the data back into the array.

Posted: Sun Jan 07, 2007 1:07 pm
by Ambush Commander
I hope you understand the limitations of strip_tags().