title: Php remove BR-tag
body: <p>I'm trying to remove the <code>&lt;br /&gt;</code> in output from database but this isn't really working out for me. My code starts with <code>nl2br</code>, which produces <code>&lt;br /&gt;</code>. But I will allow my users to edit the texts and I would love to make sure that it line breaks are allowed in editing too. </p>
  
  <p>But in my <code>&lt;textarea&gt;</code> it prints out the <code>&lt;br /&gt;</code> tag. All I want is a line break.</p>
  
  <pre><code>echo nl2br(preg_replace("/&lt;br\W*?\/&gt;/", "", $row["content"]));
  </code></pre>