mysql_real_escape_string for HTML <p>???
| From: | Ron Piggott | Date: | Sun, 06 Mar 2005 04:21:14 +0000 |
| Subject: | mysql_real_escape_string for HTML <p>??? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-38782@lists.php.net to get a copy of this message | ||
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 when the variable is defined as "longtext" and you
are expecting the user to write a few sentences or where they may s/he may
press ENTER to start a new line.
Ron