Jason28 Posted June 2, 2008 Share Posted June 2, 2008 I can write this up myself but was wondering if there was a script that allows users to use html in a submit form but prevents danagerous code from being entered? Thanks. Quote Link to comment Share on other sites More sharing options...
pocobueno1388 Posted June 2, 2008 Share Posted June 2, 2008 This is a great class http://htmlpurifier.org/ Quote Link to comment Share on other sites More sharing options...
Jason28 Posted June 2, 2008 Author Share Posted June 2, 2008 Hmm well I meant just some simple codes that allows a user to submit html to a DB but nothing malicious so that it will appear on their page. I could create an array and use preg matches and stuff but I was hoping to save time by finding a little script that does this for me. Thanks. EDIT Actually I may try to use htmlspecialchars_decode() for the first time with htmlspecialchars to see how that turns out. 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.