Natechs Posted June 9, 2009 Share Posted June 9, 2009 I want to filter my contact form's input for HTML but I can't figure out how to do that! Could someone tell me how to do that. Link to comment Share on other sites More sharing options...
justsomeguy Posted June 9, 2009 Share Posted June 9, 2009 If you want to remove HTML, the easiest way is to use the strip_tags function. Link to comment Share on other sites More sharing options...
Synook Posted June 9, 2009 Share Posted June 9, 2009 If you want to escape it, you can use htmlspecialchars(). Link to comment Share on other sites More sharing options...
Natechs Posted June 10, 2009 Author Share Posted June 10, 2009 Thanks. I don't want people putting scripts in there. But someone puts in an anchor the link is escaped to. But both your options help tremendously. Thanks! Link to comment Share on other sites More sharing options...
Synook Posted June 10, 2009 Share Posted June 10, 2009 Automatically parse links, or use BBCode. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.