title: Opposite of nl2br? Is it str_replace?
body: <p>So the function nl2br is handy. Except in my web app, I want to do the opposite, interpret line breaks as new lines, since they will be echoed into a pre-filled form.</p>
  
  <p>str_replace can take <code>&lt;br /&gt;</code> and replace it with whatever I want, but if I put in \n, it echoes literally a backslash and an n. It only works if I put a literal line break in the middle of my script, and break the indentation (so there are no trailing space).</p>
  
  <p>See:</p>
  
  <pre><code>    &lt;?=str_replace('&lt;br /&gt;','
  ',$foo)?&gt;
  </code></pre>
  
  <p>Am I missing escape characters? I think I tried every combination...</p>