Language:
Free Online Dictionary|3Dict

變危為安

Source : CEDICT

to change from danger to safety (idiom)