Using nl2br and mysql_real_escape_string at same time
<p>Whats the correct way to use nl2br in the following way.</p>

<p>I have post data that comes from a text area input </p>

<pre><code>  $data = $_POST;
  $escaped_data = array();
  foreach ($data as $key =&gt; $val) {
      $escaped_data[$key] = mysql_real_escape_string($val);
  }
  $desc = $escaped_data[description];
  $desc = nl2br($desc);
</code></pre>
