Re: text insertion

From: Date: Wed, 10 Aug 2011 20:52:13 +0000
Subject: Re: text insertion
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-314467@lists.php.net to get a copy of this message
:On Wed, Aug 10, 2011 at 16:02, Chris Stinemetz <chrisstinemetz@gmail.com> 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/

« previous php.general (#314467) next »