Yes, Matt's right. Magic quotes are probably responsible for the behavior you're seeing with slashes. From
the documentation:
Quote:
magic_quotes_gpc boolean
Sets the magic_quotes state for GPC (Get/Post/Cookie) operations. When magic_quotes are on, all ' (single-quote), " (double quote), \ (backslash) and NUL's are escaped with a backslash automatically.
|
The carriage returns are another matter, though. If they're in your database but not showing up on your page, have you made sure that you're converting them to HTML before displaying? You need a <br /> tag to display a newline, and there is no automatic conversion for that. Magic quotes only handles the quotes and slashes, and only works on data coming in, not going out.
You can call
nl2br() to take care of newline->br tag conversion.