[PHP] Re: nl2br problem

2011-02-02 Thread Al
On 2/1/2011 2:42 PM, Donovan Brooke wrote: Hello, I have CMS form that allows HTML for the body of a site. To keep the form somewhat WYSIWYG, I am using the nl2br() function for displaying: nl2br($t_body) This works great for normal stuff.. but for pages with tables etc.. it creates a lot

Re: [PHP] Re: nl2br problem

2011-02-02 Thread Donovan Brooke
Al wrote: [snip] You have an example of a page you'd like to control that we can see? On the surface, it appears you may be able to control the rendering with advanced CSS2/3 selectors. Thus, the browsers will do the work for you. Al.. Hello, yes and no.. ;-) Right now browsers

[PHP] Re: nl2br problem

2004-05-28 Thread Justin Patrin
Gerben wrote: If have some problems with the nl2br function. It f*cks up my layout. does anyone know how to create a true nl2br function in stead of a nl2br-and-nl function. i.e. I just want everything on one line. I used: str_replace(\n, , nl2br($text)); but I don't like it that much and I don't

[PHP] Re: nl2br problem

2004-05-28 Thread Gerben
my indentation is screwed up when I use nl2br(); Justin Patrin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Gerben wrote: If have some problems with the nl2br function. It f*cks up my layout. does anyone know how to create a true nl2br function in stead of a nl2br-and-nl

RE: [PHP] Re: nl2br problem

2004-05-28 Thread Vail, Warren
- From: Gerben [mailto:[EMAIL PROTECTED] Sent: Friday, May 28, 2004 11:12 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: nl2br problem my indentation is screwed up when I use nl2br(); Justin Patrin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Gerben wrote: If have some problems