private function stripslashes_recursive($variable)
    {
        if (!empty($variable) && is_string($variable)) {
            return stripslashes($variable);
        }

        if (!empty($variable) && is_array($variable)) {
            foreach ($variable as $i => $value) {
                $variable[$i] = $this->stripslashes_recursive($value);
            }
        }

        return $variable;
    }