tests for escaping
do not stripslashes() unconditionally.

magic quotes is deprecated, besides to do this properly, should first check if magic quotes is enabled