static public function formatSearch($value)
    {
        $value = static::filter_xss($value);
        $value = static::html_entities($value);
        $value = str_replace('&lt;', '', $value);
        $value = str_replace('&gt;', '', $value);
        $value = static::sql_encode($value);
        $value = trim($value);
        
        return $value;
    }
static public function formatSearch($value)
    {
        $value = static::filter_xss($value);
        $value = static::html_entities($value);
        $value = str_replace('&lt;', '', $value);
        $value = str_replace('&gt;', '', $value);
        $value = static::sql_encode($value);
        $value = trim($value);
        
        return $value;
    }
static public function formatSearch ( $ value ) { $ value = static :: filter_xss ( $ value ) ; $ value = static :: html_entities ( $ value ) ; $ value = str_replace ( '&lt;' , '' , $ value ) ; $ value = str_replace ( '&gt;' , '' , $ value ) ; $ value = static :: sql_encode ( $ value ) ; $ value = trim ( $ value ) ; return $ value ; }
format search text, do filter xss and sql encode
@param  string $value
@return string
format search text do filter xss and sql encode