As shown in that example, even quote entities are considered to not exist in certain situations. That is how you created 3 of the same. While there are all these issues, I have yet to find why it shows this way for you, since it would have had to be htmlspecialchars_uni()'d somewhere along the line (after the page load). This exact behavior can still not be reproduced.