characters like quotes are only escaped to be inserted into the database, because quotes are also part of the query that inserts the data. this is done by addslashes()
When retreived from the database, the quotes will be 'un-escaped' automatically.
If you have a problem with escaped characters appearing in your output, you may need to use stripslashes() to remove the escapes again.