How to recognize every linebreak?
<p>How could I recognize every linebreak? It doesnt put > on every new line.</p>

<p>I currently use this <code>'&amp;gt; ' . str_replace("\n", "\n&gt; ", $msg);</code></p>

<p>Output:</p>

<pre><code>[i]Originally posted by DiSanti[/i]
&gt; Lorem ipsum dolor sit amet, consectetur adipiscing elit. 
&gt; Morbi in nunc vitaemauris.      
semper posuere sed nec metus. Phasellus fermentum mattis convallis. Integer   
nuncelit.    
vestibulum a hendrerit in, volutpat eu arcu. Nulla aliquet, leo 
acscelerisque.            
</code></pre>

<p>I want it to look like:</p>

<pre><code>[i]Originally posted by DiSanti[/i]
&gt; Lorem ipsum dolor sit amet, consectetur adipiscing elit. 
&gt; Morbi in nunc vitaemauris.     
&gt; semper posuere sed nec metus. Phasellus fermentum mattis convallis. Integer   
&gt; nuncelit.    
&gt; vestibulum a hendrerit in, volutpat eu arcu. Nulla aliquet, leo 
&gt; acscelerisque.            
</code></pre>
