Hartley Posted May 24, 2008 Share Posted May 24, 2008 I tried searching and couldn't figure out a good search algorithm to find this. I'm making a CMS and in one of the textareas, HTML is meant to be inputted by administrators. How do I set it so that the HTML is preserved and won't cause a mySQL error from any quotations at the same time? Thanks in advance! Quote Link to comment https://forums.phpfreaks.com/topic/107120-make-insert-html-safe/ Share on other sites More sharing options...
pocobueno1388 Posted May 25, 2008 Share Posted May 25, 2008 This is a nice class for this http://htmlpurifier.org/ Quote Link to comment https://forums.phpfreaks.com/topic/107120-make-insert-html-safe/#findComment-549332 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.