|
Posted by Tim Roberts on 08/06/06 01:14
axlq@spamcop.net (axlq) wrote:
>
>>Or use nl2br($text) to convert line breaks to <br>.
>
>That converts line breaks to <br /> which doesn't validate as
>HTML unless you do str_replace("<br />", "<br>", nl2br($text));
Interesting. I hadn't realized that form wasn't in the HTML standard.
Every browser in the world will accept <br/>, and it is required for XHTML.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
Navigation:
[Reply to this message]
|