base64_encode和解码转义字符问题

Hi I've made a paste bin site to share code with a school work group, the problem that I have is when I save code in the db I use base64_encode(code), when I try to show with base64_decode(code) it shows with escaped chars like:

#!/bin/bash

printf \"thi is a test\"\


exit 0

How can I show it, with out escaped chars?

Thanks, Manolo

It looks like your web hosting provider has the "magic quotes" mis-feature enabled. Magic quotes is the product of a bygone era of PHP and should no longer be used.

You should probably disable them. In particular, you're suffering from magic_quotes_runtime, which can be disabled on a script-by-script basis rather than needing an .htaccess or php.ini change.