The yellow cards are wiped out after the semis.
So a player who gets the second yellow in the quarters will miss the semi.
What's the use of wiping it out after the semis? If you get a second one in the semis you miss the final, so it has to be after the quarters. As somebody said, you do miss the semis if you receive a 2nd yellow card in the quarters