The code you posted is a waste. Use the following. If that isn't returning what you want, then the posted variable is incorrect. If that is the case, then we need more relevant code.

PHP Code:
$txt stripslashes($_POST['text']);