Posted by Hendri Kurniawan on 02/28/07 01:46
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
[Back to original message]
|