You can soak the onion in cold water with a little salt for 10-15 minutes and then rinse it well before adding it to the salad.