geethalakshmi Posted May 2, 2008 Share Posted May 2, 2008 hi, I am a newbie.can any one explain me about the use of strip-tags in php. http://www.hiox.org/ Link to comment https://forums.phpfreaks.com/topic/103871-newbie/ Share on other sites More sharing options...
wrongmove18 Posted May 2, 2008 Share Posted May 2, 2008 It removes HTML/PHP tags from a string. Link to comment https://forums.phpfreaks.com/topic/103871-newbie/#findComment-531713 Share on other sites More sharing options...
947740 Posted May 8, 2008 Share Posted May 8, 2008 It is useful if you do not want them to add any html tags to an input field. It is especially useful in keeping <script> tags out, because those can be rather malicious. Link to comment https://forums.phpfreaks.com/topic/103871-newbie/#findComment-536029 Share on other sites More sharing options...
TheFilmGod Posted May 8, 2008 Share Posted May 8, 2008 It removes HTML/PHP tags from a string. That is correct. But if you think about, "PHP" tags shouldn't be a problem since anytime you want to echo text, you do the echo "string text" and not a function. Unless the php tags are "smart" enough to end the string text and add a semicolon - no worries! Link to comment https://forums.phpfreaks.com/topic/103871-newbie/#findComment-536305 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.