Language:
Free Online Dictionary|3Dict

轉危為安

Source : CEDICT

to turn peril into safety (idiom); to avert a danger (esp. political or medical)