You are here: Re: Keeping the formatting of text « PHP Programming Language « IT news, forums, messages
Re: Keeping the formatting of text

Posted by Chuck Anderson on 12/12/62 11:54

flamer die.spam@hotmail.com wrote:
> Ian Davies wrote:
>
>
>> Probably a simple solution to this one
>>
>> When I display large piece of text on a web page from a text field in my
>> database the formatting such as paragraphs line feeds are lost, unless I
>> include the appropriate html tags in it. How can I display the text as
>> written initially?
>>
>> Thanks in advance
>>
>
> Perhaps <pre></pre> around the text.
>
>
>

Or use nl2br($text) to convert line breaks to <br>.

--
*****************************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Everyone's journey should be different,
so that we all are enriched
in new and endless ways
*****************************

 

Navigation:

[Reply to this 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

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