Re: How to detect a line break in a multiline textfield
- From: Hendri Kurniawan <ask-me@xxxxxxxxx>
- Date: Wed, 28 Feb 2007 12:46:13 +1100
Hendri Kurniawan wrote:
Ciaran wrote:Hi can someone give me the code to convert a line break in a multilinenl2br
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
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
.
- Follow-Ups:
- References:
- How to detect a line break in a multiline textfield
- From: Ciaran
- Re: How to detect a line break in a multiline textfield
- From: Hendri Kurniawan
- How to detect a line break in a multiline textfield
- Prev by Date: Re: How to remove row from ezSQL object?
- Next by Date: Re: Site search classes?
- Previous by thread: Re: How to detect a line break in a multiline textfield
- Next by thread: Re: How to detect a line break in a multiline textfield
- Index(es):
Relevant Pages
|