RE: [PHP-DB] mysql_real_escape_string for HTML p???

2005-03-06 Thread Bastien Koert
Hi Ron Use nl2br()...its adds in br / tags. The other option is to use str_rplace and replace the characters with ones of your choice bastien From: Ron Piggott [EMAIL PROTECTED] To: PHP DB php-db@lists.php.net Subject: [PHP-DB] mysql_real_escape_string for HTML p??? Date: Sat, 5 Mar 2005 23:21

[PHP-DB] mysql_real_escape_string for HTML p???

2005-03-05 Thread Ron Piggott
I know of the $variable = mysql_real_escape_string($variable); It works just nicely to allow some of the wild cards to be saved to a mySQL table. Is there something like this for HTML that when you retrieve from a variable in the table an ENTER would be converted to P I am mainly talking about