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/ Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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! 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.