after you get the output text into a variable, say $text, you must run that variable through the stripslashes() like this:
$text = stripslashes($text);
the result is that the original $text variable has been replaced with a variable with slashes stripped. If you want to have both the original and the new one, do something like this:
$t2 = stripslashes($text);
then $text will still contain the original, while $t2 will contain the stripped version.
hope that helps.