Re: Re: passthru

From: Date: Mon, 06 Aug 2007 10:21:48 +0000
Subject: Re: Re: passthru
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-260232@lists.php.net to get a copy of this message
Does anyone know way to passthru man pages so they don't show the ascii formating?
You could: 1) Replace all newlines (ASCII 10) with a <br> tag. htmlspecialchars() will do this for you.
Does it? I thought it only replaced entities. \n is not a "special char" in html lingo in that you can include them happily in a document and it is still syntactically correct! I believe you want the nl2br() function instead here.
Ah yes. My bad. -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support

« previous php.general (#260232) next »