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.
> >
>
--- "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 's in the output.
I just went through this issue the other day, what I
found worked for me was:
htmlspecialchars('s
To view the terms under which this email is distributed, please go to
http://disclaimer.leedsmet.ac.uk/email.htm
On 09 December 2004 22:41, Ben C wrote:
> I have a form which has a text box which then stores in MySQL. When I
> write seperate paragraphs and try and then view what I wrote it lu
Ben C wrote:
I have a form which has a text box which then stores in MySQL. When I
write seperate paragraphs and try and then view what I wrote it lumps
it all together in one paragraph when I echo. I am sure I am doing
something simply wrong. Anyone have any ideas?
The line breaks are preserved
Ben C wrote:
I have a form which has a text box which then stores in MySQL. When I
write seperate paragraphs and try and then view what I wrote it lumps
it all together in one paragraph when I echo. I am sure I am doing
something simply wrong. Anyone have any ideas?
put tag around it. and don't
I have a form which has a text box which then stores in MySQL. When I
write seperate paragraphs and try and then view what I wrote it lumps
it all together in one paragraph when I echo. I am sure I am doing
something simply wrong. Anyone have any ideas?
--
PHP General Mailing List (http://www.
6 matches
Mail list logo