monkeytooth Posted March 17, 2009 Share Posted March 17, 2009 Well I am trying to filter my inputs a bit before storing them... my issue is I can't seem to catch and filter everything i want to. In this case some html tags like the textarea tag trying to prevent people from breakin my inputs to then attempt to alter things a bit. Which grant it for the most part my filters are working to weed things out but the textarea thing, it annoys the piss out of me. Any ideas on what I can do? cause none of the 3 below catch it, stop it, nothing.. not even when i try to just catch the word textarea and have it put ... in its place, sorry for sounding crass, ive been up for 3 days working on a project, coffee ran out this morning early, you know how it goes.. :-) htmlentities($something); ereg_replace('"', '"', $something); str_replace("[string]", "equivalent", $something); Link to comment https://forums.phpfreaks.com/topic/149832-problem-with-catching-a-string/ Share on other sites More sharing options...
jlhaslip Posted March 17, 2009 Share Posted March 17, 2009 http://ca2.php.net/striptags Link to comment https://forums.phpfreaks.com/topic/149832-problem-with-catching-a-string/#findComment-786792 Share on other sites More sharing options...
monkeytooth Posted March 17, 2009 Author Share Posted March 17, 2009 oh thats lovely, don't know how I over looked that function, thank ya.. Link to comment https://forums.phpfreaks.com/topic/149832-problem-with-catching-a-string/#findComment-786796 Share on other sites More sharing options...
monkeytooth Posted March 17, 2009 Author Share Posted March 17, 2009 Stand corrected, im still not able to stop the teaxt area from breaking somewhere its not catching accordingly, my "Filters" run above the body tag from $_POST vars. Thing is the filters are working like a charm minus catching that element. I dont get it, its almost driving me insane.. Link to comment https://forums.phpfreaks.com/topic/149832-problem-with-catching-a-string/#findComment-786813 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.