Word Definition - 化险为夷

huà xiǎn wéi yí to turn peril into safety (idiom); to avert disaster