Re: How to detect a line break in a multiline textfield



Hendri Kurniawan wrote:
Ciaran wrote:
Hi can someone give me the code to convert a line break in a multiline
textfield to a <br/> tag ? It's something to do with CR LF but I can't
find the exact code anywhere.
Cheers,
Ciarán

nl2br

Sorry, Need to clarify this.
nl2br converts line break to HTML br tag.
If you want to change from <br/> tag to CRLF, do a str_replace instead.
I've no recollection any functions that will convert br tag to CRLF
(as far as i know anyway)

Hendri Kurniawan
.



Relevant Pages