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. Link to comment https://forums.phpfreaks.com/topic/108375-submit-form-that-only-strips-out-harmful-code-but-nothing-else/ 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/ Link to comment https://forums.phpfreaks.com/topic/108375-submit-form-that-only-strips-out-harmful-code-but-nothing-else/#findComment-555567 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. Link to comment https://forums.phpfreaks.com/topic/108375-submit-form-that-only-strips-out-harmful-code-but-nothing-else/#findComment-555570 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.