Correct

转危为安

/ zhuǎi wēi wéi ān / 
Strokes

Definition

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

Example

Definition

take a turn for the better and be out of danger—pull through; turn the corner

1
Tā
他
céngjīngbìng
曾经病
de
得
hěn
很
lìhai
厉害
  
,
dàn
但
xiànzài
现在
yǐjīng
已经
zhuǎiwēiwéiān
转危为安
le
了
  
。

He was very ill, but he has turned the corner now.