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 ? Link to comment https://forums.phpfreaks.com/topic/183798-getting-rid-of-quotes-when-printing-data/ 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. Link to comment https://forums.phpfreaks.com/topic/183798-getting-rid-of-quotes-when-printing-data/#findComment-970149 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 Link to comment https://forums.phpfreaks.com/topic/183798-getting-rid-of-quotes-when-printing-data/#findComment-970178 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.