yes there is: htmlspecialchars_decode($string, ENT_QUOTES);
not sure about the specific '
char, as far as I know htmlspecialchars
(with ENT_QUOTES
flag) convert an apostrophe (‘) to '
(with a leading zero)
so the exact behavior on '
worth checking