yes there is: htmlspecialchars_decode($string, ENT_QUOTES);
not sure about specific ' char, as far as I know, htmlspecialchars (with the ENT_QUOTES flag) converts an apostrophe (') to ' (with a leading zero)
therefore the exact behavior on ' worth checking out
EDIT: I did a test and it works :)
source share