you could use stripslashes(), but magic_quotes_gpc is the directive you're looking for in the configuration file.
Forum Rules