src/Library/HttpFundamental/Request.php
public static function cleanArgument($arg_value, $flags = ENT_COMPAT, $encoding = 'UTF-8') 
    {
        if (is_string($arg_value)) {
            $result = stripslashes( htmlspecialchars($arg_value, ENT_COMPAT, $encoding) );
        } elseif (is_array($arg_value)) {
            $result = array();
            foreach($arg_value as $arg=>$value) {
                $result[$arg] = self::cleanArgument($value, $flags, $encoding);
            }
        }
        return $result;
    }
public static function cleanArgument($arg_value, $flags = ENT_COMPAT, $encoding = 'UTF-8') 
    {
        if (is_string($arg_value)) {
            $result = stripslashes( htmlspecialchars($arg_value, ENT_COMPAT, $encoding) );
        } elseif (is_array($arg_value)) {
            $result = array();
            foreach($arg_value as $arg=>$value) {
                $result[$arg] = self::cleanArgument($value, $flags, $encoding);
            }
        }
        return $result;
    }
public static function cleanArgument ( $ arg_value , $ flags = ENT_COMPAT , $ encoding = 'UTF-8' ) { if ( is_string ( $ arg_value ) ) { $ result = stripslashes ( htmlspecialchars ( $ arg_value , ENT_COMPAT , $ encoding ) ) ; } elseif ( is_array ( $ arg_value ) ) { $ result = array ( ) ; foreach ( $ arg_value as $ arg => $ value ) { $ result [ $ arg ] = self :: cleanArgument ( $ value , $ flags , $ encoding ) ; } } return $ result ; }
Clean the value taken from request arguments or data

@param   string  $arg_value  The parameter name if so, or 'args' to get all parameters values
@param   int     $flags      The PHP flags used with htmlspecialchars() (default is ENT_COMPAT)
@param   string  $encoding   The encoding used with htmlspecialchars() (default is UTF-8)
@return  string  The cleaned value
Clean the value taken from request arguments or data