RE: [PHP] XHTML compatible error messages
| From: | Jon Haworth | Date: | Fri, 17 Aug 2001 15:49:08 +0000 |
| Subject: | RE: [PHP] XHTML compatible error messages | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-63200@lists.php.net to get a copy of this message | ||
I think Jan meant that when PHP spits out "Error in line x", it has a <br>
in there which causes the page to be invalid.
My question would be "why are you trying to validate pages with errors in
anyway?"
Cheers
Jon
-----Original Message-----
From: Tyler Longren [mailto:tyler@captainjack.com]
Sent: 17 August 2001 16:44
To: Jan
Cc: php-general@lists.php.net
Subject: Re: [PHP] XHTML compatible error messages
$string = "Hello everyone!<br>How are you today?";
$result = str_replace("<br>", <br/>", "$string");
--
Tyler Longren
Captain Jack Communications
tyler@captainjack.com
www.captainjack.com
On Fri, 17 Aug 2001 17:40:07 +0200
"Jan" <vincev@gmx.de> wrote:
> Hi out there!
>
> I have got a problem with PHP's standard way of reporting errors.
> The <br> in the error messages are making the XML invalid (should be
> <br/>). Is there an easy way to do this?
>
> Jan.
>