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 Link to comment https://forums.phpfreaks.com/topic/61136-html/ 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 Link to comment https://forums.phpfreaks.com/topic/61136-html/#findComment-304236 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 Link to comment https://forums.phpfreaks.com/topic/61136-html/#findComment-304241 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 Link to comment https://forums.phpfreaks.com/topic/61136-html/#findComment-304275 Share on other sites More sharing options...
jaymc Posted July 21, 2007 Share Posted July 21, 2007 I use strip_tags() It works fine Link to comment https://forums.phpfreaks.com/topic/61136-html/#findComment-304277 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. Link to comment https://forums.phpfreaks.com/topic/61136-html/#findComment-304282 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.