nl2br() and addslashes question - please read!
I have the following line in a script:
$content = addslashes($content);
How can I combine the nl2br() fuction to this?
Thanks...
I have the following line in a script:
$content = addslashes($content);
How can I combine the nl2br() fuction to this?
Thanks...
Maverick posted this at 15:08 — 15th July 2000.
They have: 334 posts
Joined: Dec 1999
Just do it on the next line
$content = addslashes($content);
$content = nl2br($content);
Matt Kaufman posted this at 14:07 — 18th July 2000.
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.