Re: Returns..

From: Date: Fri, 19 Sep 2003 15:31:23 +0000
Subject: Re: Returns..
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-163167@lists.php.net to get a copy of this message
On Fri, 19 Sep 2003 07:53:12 -0400 "Chris Mach" <cjmach@gto.net> wrote: > Why does it put a space in there? <br /> > > It's screwing up my other script which displays just the first 50 > words of the news article by exploding each word into an array. So > /> is showing up after each break. > The reason for the space is to comply with XHTML standards. The XHTML declares that all tags "must be properly nested, an end tag closes, back to the matching start tag, all unclosed intervening start tags with omitted end tags". All empty elements must use the XML "empty tag" syntax with a trailing forward slash ("/") before the end bracket (eg. <br> becomes <br />). Note the space after the element text and the />. This is for compatibility with current browsers. -- Raquel ============================================================ If God lived on earth, people would break his windows. --Jewish Proverb

« previous php.general (#163167) next »