nl2br() and addslashes question - please read!

They have: 324 posts

Joined: Dec 1999

I have the following line in a script:

$content = addslashes($content);
'

How can I combine the nl2br() fuction to this?

Thanks...

They have: 334 posts

Joined: Dec 1999

Just do it on the next line

$content = addslashes($content);
$content = nl2br($content);
'

They have: 324 posts

Joined: Dec 1999

Thanks, but I found out that you could do it this way:

$content = nl2br(addslashes($content));
'

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.