Folks,
It seems the guys at StackOverFlow can’t make-up their minds and are fighting who is right and he is wrong and so I will stick to this forum instead.
One of them talked about this function but I ain;t bothered about it now but may do in future. DO check it out:
When to use htmlentities() and when to use htmlspecialchars() ? That’s the big question.
Former turns all chars into entities and latter turns certain limited chars. That is what I know. But looking at the argument at StackOverFlow it seems this is not always the case. Infact opposite. According to them.
What’s your input.
I’m going to be echoing links that contain params from url $_GET. Params that are sometimes based on programmer’s default settings/programmings and params that are user inputs on webforms. Hence, looking into these two functions all over again. Gonna look into urlencoding() again too.
I just keep forgetting these 2 confusing functions. There should have been one instead of 3.
And sometimes some say use the INVAL while others say urlencode() is enough. Again confusing!
Hence, looking into urlencode() and INTVAL() again.