When in quicksand, press the following combination to escape:
L1, R1, L2, R2
Rapidly tap X, Circle to fill the glove power bar until it explodes.
Make sure you have the Armageddon magic equipped and select the Warp level. Stand next to a teleporter, use Armageddon then step into the teleporter. You will come out either as thin as paper or invisible.
Note: If this does not work first time, try it standing next to one of the other teleporters or enter at a slightly quicker or delayed time while Armageddon is in action.