simple formatting problem - <pre> |
[eluser]stuffradio[/eluser]
Someone wrote in the Php docs page for nl2br: Code: <? $string = preg_replace('/<pre>(.*?)<\/pre>/ise',"'<pre>' . preg_replace('/(<br \/?>)/is','','\\1') . '</pre>'",$string); ?> That function would allow you to use your '<pre>' formatting I believe. http://us2.php.net/nl2br Read through the user contributed notes. |
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
|