title: Outputting a string into a JADE/PUG file
body: <p>So I have an issue where the string I'm reading in contains newlines, and I'm parsing the newlines in my JS file like so </p>
  
  <pre><code>var str = post.content.replace(/(?:\r\n|\r|\n)/g, '&lt;br/&gt;;');
  </code></pre>
  
  <p>For example, I want my text: </p>
  
  <pre><code>Hello World! How's it going?
  </code></pre>
  
  <p>to become</p>
  
  <pre><code>Hello World!
  
  How's it going?
  </code></pre>
  
  <p>But instead, I'm getting </p>
  
  <pre><code>Hello World! &lt;br/&gt; How's it going?
  </code></pre>
  
  <p>How would I best approach this? It seems the logic I imported from HTML will not work in JADE/PUG</p>