ShaolinF Posted December 2, 2009 Share Posted December 2, 2009 Hi Guys, I use the filter_var FILTER_SANITIZE_STRING to filter the textarea input. The function escapes any quotes (which is good) but when I print the data into the html the data is printed with the backslashes. How do I get rid of them ? Quote Link to comment Share on other sites More sharing options...
oni-kun Posted December 2, 2009 Share Posted December 2, 2009 Hi Guys, I use the filter_var FILTER_SANITIZE_STRING to filter the textarea input. The function escapes any quotes (which is good) but when I print the data into the html the data is printed with the backslashes. How do I get rid of them ? Using the function stripslashes. Quote Link to comment Share on other sites More sharing options...
JAY6390 Posted December 3, 2009 Share Posted December 3, 2009 Yup as simple as running that on it 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.