First, you should use MySQL escaping function : mysql_real_escape_string() (if using MySQL) or mysqli_real_escape_string() (if using MySQLi extension).
Second, when you get the value from the DB, you don't need to "stripslashes" since they are returned normally....
So let's say :
User writes : The lion is very 'special'
mysqli_real_escape_string() => The lion is very\'special\'
Insert in DB
In the DB, it will be => The lion is very 'special'
Get from DB => The lion is very 'special'
Output => The lion is very 'special'