Replace ' and similar html codes with their correspondent character?

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

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)