title: Using Laravel 5, How to detect carriage returns and insert line break
body: <p>I'm following the excellent laravel guide on <a href="https://laracasts.com/series/laravel-5-from-scratch" rel="nofollow">Laracasts</a> and have gotten to the point where we're outputting song titles from a mysql database in video 7.</p>
  
  <p>I wanted to go ahead and add the lyrics which I've done just fine.</p>
  
  <p>Now I'd just like to format it a little better, to add new lines where required.</p>
  
  <p>I've attempted to use str_replace in my view in this manner;</p>
  
  <pre><code>&lt;p&gt;{{str_replace("\r","\n", $song-&gt;lyrics)}}&lt;/p&gt;
  </code></pre>
  
  <p>But nothing appears to happen.  If I use <br> instead of \n, I can see that the carriage return is detected in the correct places, but my output appears like this; </p>
  
  <pre><code>looking oh so pretty,&lt;br&gt; I've just got to find my way.&lt;br&gt;
  </code></pre>
  
  <p>Where the &lt; br>'s are just output as normal text.</p>
  
  <p>Can anyone tell me if I'm approaching this in the right way?  I've tried double and triple curly braces and I think I may be forgetting something that mentioned an exclamation mark, but I can't seem to find where it was mentioned again.</p>
  
  <p>Any help would be appreciated.</p>