I've never encountered quicksand and cannot vouch for this. But I recall reading once that quicksand does not drag you down and, if you assume the same position as when floating in water and then backstroke swim out, you can survive. I assume that the faster you flop on your back and start backstroking your way out, the easier the task will be.