Place the grated potatoes and onion in a clean kitchen towel and squeeze out as much liquid as possible. Transfer to a mixing bowl.