To view the terms under which this email is distributed, please go to 
http://disclaimer.leedsmet.ac.uk/email.htm



On 10 December 2004 11:30, Stuart Felenstein wrote:

> --- "Ford, Mike" <[EMAIL PROTECTED]> wrote:
> 
> > echo nl2br(htmlspecialchars($text)) is my usual
> > mantra for this.
> > 
> nl2br will give you back the correct formatting, but
> will leave <br/>'s in the output.

OK, yes, a case of engage brain before operating keyboard: in a <textarea>,
that may be the case; if you're just sending it out as part of straight
HTML, my mantra is right!

Cheers!

Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to