Re: text insertion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



:On Wed, Aug 10, 2011 at 16:02, Chris Stinemetz
<chrisstinemetz@xxxxxxxxx> wrote:
>> Are you sure its not preserved? When you output text in a browser, by default its output as html, not plain text. Html ignores extraneous whitespace, and doesn't use a monospaced font, so formatting text into columns in a textarea won't work either. Look at the html source code to see what is actually being output.
>
> Thanks Ashley
>
> Source is showing indentation and new paragaraphs just as I inserted
> the text. How can I get HTML output to show same format?

    Use HTML 'pre' tags:

        <pre><?php echo $your_content; ?></pre>

-- 
</Daniel P. Brown>
Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting
(866-) 725-4321
http://www.parasane.net/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux