unidox Posted July 21, 2007 Share Posted July 21, 2007 How do I disable all <script><html> and tags like that in an <input in my php Quote Link to comment Share on other sites More sharing options...
AndyB Posted July 21, 2007 Share Posted July 21, 2007 http://ca.php.net/manual/en/function.strip-tags.php Quote Link to comment Share on other sites More sharing options...
LiamProductions Posted July 21, 2007 Share Posted July 21, 2007 That would be <?php echo strip_tags("text"); ?> Well i think so... Im new to PHP Quote Link to comment Share on other sites More sharing options...
Barand Posted July 21, 2007 Share Posted July 21, 2007 If in doubt, you could aways read the manual. The link is provided courtesy of AndyB Quote Link to comment Share on other sites More sharing options...
jaymc Posted July 21, 2007 Share Posted July 21, 2007 I use strip_tags() It works fine Quote Link to comment Share on other sites More sharing options...
tanvir Posted July 21, 2007 Share Posted July 21, 2007 I think you should use htmlentities() function. It should convert all html entities. 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.