Well, obviously if your egg breaks in the carton, you'll want to clean it, or if it's the re-used paper type just throw it out, or cut off that part. For the most part, unless after you break your egg you put the shell back into the carton, it should stay pretty safe from salmonella
-peace