Reply to Re: Keeping the formatting of text

Your name:

Reply:


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.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация