Hey everyone,
I'm working on a PHP project, and I was expecting to be able to use the htmlspecialchars() function to take a string that contains something like an "&" and the & would be changed to &.
But when I tried to use a string with the function, the string remained unchanged?!
All I am doing code-wise is something as simple (to test it if it even works,):
echo htmlspecialchars("test & < >");
Am I missing something?
I tried searching around on Google, and here at the forum, but I could not find someone else who has had the same weird problem. Thanks.
andy