According to International Geographic, if he did get swallowed whole, the guy could have swam out of the stomach, across the idio syncratic membrane, through the abdullah oblongata and climbed out the blow hole.
He would have needed a knife. Whale sharks don’t have blowholes.