Welcome Guest, Not a member yet? Register   Sign In
simple formatting problem - <pre>
#2

[eluser]stuffradio[/eluser]
Someone wrote in the Php docs page for nl2br:

Code:
&lt;? $string =  preg_replace('/<pre>(.*?)<\/pre>/ise',"'<pre>' . preg_replace('/(<br \/?&gt;)/is','','\\1') . '</pre>'",$string); ?&gt;

That function would allow you to use your '<pre>' formatting I believe.

http://us2.php.net/nl2br

Read through the user contributed notes. Big Grin


Messages In This Thread
simple formatting problem - <pre> - by El Forum - 08-04-2008, 04:18 PM
simple formatting problem - <pre> - by El Forum - 08-04-2008, 04:28 PM
simple formatting problem - <pre> - by El Forum - 08-05-2008, 12:02 PM



Theme © iAndrew 2016 - Forum software by © MyBB