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 ? Link to comment https://forums.phpfreaks.com/topic/223429-disabling-html-chars/ 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 Link to comment https://forums.phpfreaks.com/topic/223429-disabling-html-chars/#findComment-1154995 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. Link to comment https://forums.phpfreaks.com/topic/223429-disabling-html-chars/#findComment-1154997 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.