vividona Posted June 2, 2011 Share Posted June 2, 2011 I am using this function function sanitPostInput($runpost) { return filter_input(INPUT_POST, $runpost, FILTER_SANITIZE_SPECIAL_CHARS, FILTER_FLAG_STRIP_LOW); } It works fine with html characters but in (line break) it convert nothing. not even the converted symbol characters in spite that I am using nl2br function. note: when I check page source I found all converted characters but line break is not there Quote Link to comment https://forums.phpfreaks.com/topic/238175-filter_sanitize_special_chars-function/ 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.