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]
|