[nycphp-talk] automatically parse breaks
Donald J. Organ IV
dorgan at optonline.net
Fri Aug 1 17:04:33 EDT 2003
when displaying the information on the site use nl2br(); and then when editing the information in a text box or text area use nl2br() and then htmlspecialchars();
----- Original Message -----
From: Tim Toomey
To: talk at lists.nyphp.org
Sent: Friday, August 01, 2003 3:34 PM
Subject: [nycphp-talk] automatically parse breaks
I want to make it so that people here at the company can edit info on our website, and i want to make it so that if they hit the return key within a text field, a new line will be parsed. So that instead of having to learn how to use <br> and html they will just hit the <return> key and php will know to make a new line.
Does anyone know the code for this?
-timmy
------------------------------------------------------------------------------
_______________________________________________
talk mailing list
talk at lists.nyphp.org
http://lists.nyphp.org/mailman/listinfo/talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20030801/28e01f94/attachment.html>
More information about the talk
mailing list