In the following code:
$string1 = "function doesn't work as expected";
$string2 = html_entity_decode($string1);
$string2 still contains:
'
...after the call to html_entity_decode().
I've checked other SO threads on this topic, but haven't yet found the answer. What am I missing?