public function sanitize($value, $type = '')
    {
        switch ($type) {
            default:
                return htmlspecialchars($value, ENT_QUOTES, 'UTF-8');
                break;
            case 'strong':
                return htmlentities($value, ENT_QUOTES | ENT_IGNORE, 'UTF-8');
                break;
            case 'strict':
                return urlencode($value);
                break;
        }
    }