HSK2
yǐyǎnhuányǎn
to give sb a taste of his own medicine
以眼还眼 (以眼還眼)
an eye for an eye (idiom); fig. to use the enemy's methods against him; to give sb a taste of his own medicine
CC-CEDICT