how in the world do you fry chocolate? wouldn't it melt?

my stomach got upset just reading about all that stuff being fried.