RE: [PHP] str_replace() function help

2001-08-28 Thread J Friesen
This is the code I use for articles that are taken out of a database and the \n need to be changed to paragraphs $art = htmlspecialchars($art); $art = nl2br($art); $art = str_replace(br /, /pp, $art); echo p . $art . /p; -Original Message- From: Navid Yar [mailto:[EMAIL PROTECTED]]

RE: [PHP] str_replace() function help

2001-08-28 Thread Navid Yar
: Tuesday, August 28, 2001 11:07 AM To: Navid Yar Cc: Php-General@Lists. Php. Net Subject: RE: [PHP] str_replace() function help This is the code I use for articles that are taken out of a database and the \n need to be changed to paragraphs $art = htmlspecialchars($art); $art = nl2br($art); $art