nl2br() not working with my textarea
<p>Can somebody please help me with this problem.</p>

<p>I'm simply trying to display a message from users. The message comes to my database from a  textarea. My problem is when I am typing message and formatting it with breaking into paragraphs it is not display in that format and display it as a one long paragraph. </p>

<p>like this.</p>

<blockquote>
  <p>To change the overall look of your document, choose new Theme elements
  on the Page Layout tab. To change the looks available in the Quick
  Style gallery, use the Change Current Quick Style Set command.
  \r\n\r\nBoth the Themes gallery and the Quick Styles gallery provide
  reset commands so that you can always restore the look of your
  document to the original contained in your current template.</p>
</blockquote>

<p>I tried with nl2br() and strip_tags() but still no luck</p>

<p>The Code from validation message. </p>

<pre><code>// Check for message
if ( !empty ( $_POST['message'])) {
    if ( mb_strlen ( $_POST['message'], 'UTF-8') &lt;= 20 ) {
        $reg_errors['message'] = 'Your message must be greater than 20 characters';
    } else {
        $message = mysqli_real_escape_string($dbc, $_POST['message']);
    }   
} else {
    $reg_errors['message'] = 'Message: This field is required.';
}
</code></pre>

<p>This is the code I use when select message from db</p>

<pre><code>$message= $row['message'];
$message= nl2br(strip_tags($message));
</code></pre>

<p>when echoing $message it print a paragraph like above. </p>
