Why htmlspecialchars_decode in PHP does not have the charset parameter as in its counterpart?
- by Lawrence Lau
There is a charset parameter in htmlspecialchars but the decode version does not have it. In comparison to the similar htmlentities, the encode and decode functions both have the charset parameter. So I can't choose what charset I am decoding back to?