Re: render html
| From: | Michelle Konzack | Date: | Fri, 19 Sep 2008 19:55:27 +0000 |
| Subject: | Re: render html | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-280584@lists.php.net to get a copy of this message | ||
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)