Rommeo Posted January 5, 2011 Share Posted January 5, 2011 I let my users to post what they would like as a text, today I noticed that I forgot disabling htlm chars, so they can even post textbox's htlm code and create a textbox in the posting section, Is there any way/function to prevent this ? Quote Link to comment Share on other sites More sharing options...
BlueSkyIS Posted January 5, 2011 Share Posted January 5, 2011 strip_tags, to start http://php.net/manual/en/function.strip-tags.php Quote Link to comment Share on other sites More sharing options...
Rommeo Posted January 5, 2011 Author Share Posted January 5, 2011 Thanks, just seen the allowed tags part. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.