Jump to content

FILTER_SANITIZE_SPECIAL_CHARS function


vividona

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/238175-filter_sanitize_special_chars-function/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.