title: In table, <br /> tags displaying on the screen rathen than new line
body: <p>I have a <code>&lt;table&gt;</code> and inside <code>&lt;td&gt;</code> tags inside it where I am displaying the retrieved data from the backend. Before saving my data to database, I used this to convert <code>\n</code> and <code>\r</code> into <code>&lt;br /&gt;</code> tags:</p>
  
  <pre><code>$data = nl2br($request-&gt;data);
  $data = str_replace(array("\r\n", "\n\r", "\r", "\n"), "", $data);
  </code></pre>
  
  <hr>
  
  <p>To retrieve data, I tried directly echo-ing the value - (<code>{{ }}</code> is echo for Laravel)</p>
  
  <pre><code>&lt;tr&gt; 
    &lt;td&gt;{{ $item-&gt;data }}&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>However, this is displaying <code>&lt;br /&gt;</code> tags on the page instead of turning them into new line breaks.</p>
  
  <hr>
  
  <p>Then I tried using this approach, which I believe would work, however, this is also displaying the <code>&amp;#13;</code> on the text rather than converting it to new lines.</p>
  
  <pre><code>&lt;tr&gt; 
    &lt;td&gt;@if ($item){{ str_replace('&lt;br /&gt;', '&amp;#13;', $item-&gt;data) }}@endif&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>Also tried replacing br tags to <code>\n</code> with using <code>'\n'</code> and <code>'\\n'</code> inside <code>str_replace()</code> but no luck</p>
  
  <p>How can I turn <code>&lt;br /&gt;</code> tags into new lines as usual inside table?</p>