zero_ZX Posted September 24, 2011 Share Posted September 24, 2011 Hi, I'm trying to code a very basic commenting system, my only worries is how I'm going on about disabling the user from putting any html php etc.. in the comment so it gets displayed on the page.. I have on idea of what to look for, any help is much appreciated I considdered this: strip_tags() but what i want is to display the comment just without actually executing the code if you get me? Quote Link to comment Share on other sites More sharing options...
Psycho Posted September 24, 2011 Share Posted September 24, 2011 htmlentities() and/or htmlspecialchars() http://php.net/manual/en/function.htmlentities.php http://www.php.net/manual/en/function.htmlspecialchars.php 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.