--- Eugene Lee <[EMAIL PROTECTED]> wrote:
> Note that nl2br() is XHTML compliant, which means it sends out
> "" tags instead of "" tags. This is a problem on
> browsers that do poorly with mixed HTML and XHTML tag styles in the
> same body content.
Which browsers does this refer to?
Chris
=
On Mon, Oct 13, 2003 at 08:10:39AM -0500, Jay Blanchard wrote:
:
: [snip]
: To give tabs in html, you might want to try using
: instead of \t
: [/snip]
:
: And one other thing I didn't see mentioned http://www.php.net/nl2br
Note that nl2br() is XHTML compliant, which means it sends out ""
[snip]
To give tabs in html, you might want to try using
instead of \t
[/snip]
And one other thing I didn't see mentioned http://www.php.net/nl2br
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
To give tabs in html, you might want to try using
instead of \t
Steve
At 06:57 AM 10/13/2003, you wrote:
Wang Feng wrote:
The page source shows:
The problem might be right here --+
(closing html tag)
8 PM
Subject: Re: [PHP] \n \t don't work!!!
> On Mon, Oct 13, 2003 at 09:48:56PM +1000, Wang Feng wrote:
> :
> : Ok, Now I see what happen (maybe).
> :
> : So, the "\n" is not for the browser output, but for the *view source*?
So,
> : it's different from the &
;[EMAIL PROTECTED]>
To: "Wang Feng" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, October 13, 2003 9:29 PM
Subject: Re: [PHP] \n \t don't work!!!
> At 13:22 13-10-03, you wrote:
> >Guys,
> >
> >These codes are copied from the manual:
> >
If you want it to work with \n, then you will need to use the
tags. Otherwise you need to translate the \n's into tags. \n is NOT
an html tag so when you print them to the browser, it adds lines to the
source, but as you might already know, a new line in the source of an html
page does NOT
On Mon, Oct 13, 2003 at 09:48:56PM +1000, Wang Feng wrote:
:
: Ok, Now I see what happen (maybe).
:
: So, the "\n" is not for the browser output, but for the *view source*? So,
: it's different from the "echo "?
:
: If so, what's the deal to do that? --- Makes it look nice if the user view
: the
Wang Feng wrote:
The page source shows:
The problem might be right here --+
(closing html tag)|
|
Hello World Program
?>
***
nal Message -
From: "Chris Hayes" <[EMAIL PROTECTED]>
To: "Wang Feng" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, October 13, 2003 9:29 PM
Subject: Re: [PHP] \n \t don't work!!!
> At 13:22
> They do work but you will not see that in the rendered html page (in a
> browser). Have a look at the source of the produced page and you will see
> the linebreaks.
The page source shows:
> I suppose your manual was n
It DOES work, look at the source html code.
Wang Feng wrote:
Guys,
These codes are copied from the manual:
*
echo ("this is the simplest, an SGML processing instruction\n");
echo "This spans
multiple lines. The newlines will be
At 13:22 13-10-03, you wrote:
Guys,
These codes are copied from the manual:
*
echo ("this is the simplest, an SGML processing instruction\n");
echo "This spans
multiple lines. The newlines will be
output as well";
echo "This
13 matches
Mail list logo