Re: replacing \n with <br>

From: Date: Fri, 06 Sep 2002 18:15:42 +0000
Subject: Re: replacing \n with <br>
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-115532@lists.php.net to get a copy of this message
Sorry. Since you were looking to use <br>, I thought you were creating HTML content. But then, line feeds are ignored in HTML so then you wouldn't have a problem with them. I should have thought of that. How are you reading the file? The key being that you said you read it "line by line". Once you read a line, could you just grab the first length-1 characters and then do your parsing on that? On Friday, September 6, 2002, at 12:46 PM, David T-G wrote:
I don't want to simply add a <br>; I want to *replace* the newline (and return, as we found out in a subthread). --
Brent Baisley Systems Architect Landover Associates, Inc. Search & Advisory Services for Advanced Technology Environments p: 212.759.6400/800.759.0577

« previous php.general (#115532) next »