$str = htmlspecialchars("<a href='dnm'>Deneme</a>", ENT_QUOTES);

echo htmlspecialchars_decode($str, ENT_QUOTES);