replace line feed
<p>A php echo text with no HTML markup.</p>

<pre><code>1. one
2. two
3. three
4. four
5. five
</code></pre>

<p>How do I make it remove the linefeed?</p>

<pre><code>1. one&lt;br&gt;2. two&lt;br&gt;3. three&lt;br&gt;4. four&lt;br&gt;5. five
</code></pre>

<p>I tried nl2br, string replacement still doesn't replace properly.</p>
