|
Posted by Khai on 12/05/05 17:58
Ok - it seems that PHP has a Tidy library that tries to validate/repair
html. Since <br /> is expected to have a <br>, it's replacing it with a
<br>.
Even if it's written outside <?php ?>, or echo from inside, it still puts
<br> instead of just <br />.
Is there a way around this, rather than writing <br> <br /> every time I
want a break?
Thanks,
Khai
"Lars Eighner" <usenet@larseighner.com> wrote in message
news:slrndp1bcq.23c9.usenet@goodwill.io.com...
> In our last episode,
> <xNydnQ8yKsyxBA3enZ2dnUVZ_v-dnZ2d@comcast.com>,
> the lovely and talented Khai
> broadcast on comp.lang.php:
>
> > THat seems to work better, but still having issues getting the <br />
> > instead of the <br> it keeps punching out. Perhaps it's just in cache
and I
> > need to clear it.
>
> > Thanks =)
>
> Are you running your output through lint such as tidy?
> If it (the lint) doesn't know you are trying to write xhtml, it
> will "correct" it to html. Be sure your doctype declares xhtml,
> too.
>
> --
> Lars Eighner usenet@larseighner.com
http://www.larseighner.com/
> Love: The warm feeling you get towards someone who meets your neurotic
needs.
Navigation:
[Reply to this message]
|