Re: render html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 2008-08-25 23:24:41, schrieb VamVan:
> hello,
> 
> i have html tags in the bod of text like:
> 
> $body = "hello<br/><ul>ier</ul>hellohello";
                ^^^^^
        Should be <br />

> print $body;
> 
> Some how it does not render html properly in a html page , what might be
> going wrong?  <br> still get displayed as <br> instead of line breaks.
> 
> How can I render my HTML properly. Please note that it happens in  my cms.

Do you have the correct DOCTYPE definition?
E.g.:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3c.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>


THIS MUST BE THE VERY FIRST LINE OF YOUR HTML FILE.

Thanks, Greetings and nice Day/Evening
    Michelle Konzack
    Systemadministrator
    24V Electronic Engineer
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
+49/177/9351947    50, rue de Soultz         MSN LinuxMichi
+33/6/61925193     67100 Strasbourg/France   IRC #Debian (irc.icq.com)

<<attachment: signature.pgp>>


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux