Post Data + Strip html tags

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
thiscatis
Forum Contributor
Posts: 434
Joined: Thu Jul 20, 2006 11:00 am

Post Data + Strip html tags

Post 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?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

You have to reassign the data back into the array.
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

I hope you understand the limitations of strip_tags().
Post Reply