Re: Re: render html
| From: | Ashley Sheridan | Date: | Sun, 21 Sep 2008 09:28:58 +0000 |
| Subject: | Re: Re: render html | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-280618@lists.php.net to get a copy of this message | ||
On Sun, 2008-09-21 at 08:17 +0200, Lupus Michaelis wrote:
> Michelle Konzack a écrit :
> >> $body = "hello<br/><ul>ier</ul>hellohello";
> > ^^^^^
> > Should be <br />
>
> Definitely no :
>
> <http://www.w3.org/TR/2006/REC-xml-20060816/#dt-empty>
> <http://www.w3.org/TR/2006/REC-xml-20060816/#NT-S>
>
> Or maybe for buggy browsers ?
>
> --
> Mickaël Wolff aka Lupus Michaelis
> http://lupusmic.org
>
The space is completely optional, but I don't think it has anything to
do with the form that the tag is using. By default, browser will just
hide any tags they don't understand. I think that what is happening is
that the < and > have been escaped out. Try viewing the source to the
output page. If you see <br/> then your CMS is escaping the
chevrons and interpreting them as literal text rather than code.
Ash
www.ashleysheridan.co.uk