I\'ve seen this asked several times, but not with a good resolution. I have the following string:
$string = \"Résumé\";
Résumé
$str = "Is your name O\'vins?";
// Outputs: Is your name O'vins? echo stripslashes($str);