title: Replace new line character in freemarker
body: <p>Is there any way to replace the new line character on free marker? I am trying this:</p>
  <pre><code>&lt;#assign str = str?replace(&quot;(\r\n)+&quot;, &quot;&lt;/p&gt;&lt;p&gt;&quot;)&gt;
  </code></pre>
  <p>which worked in Java, but not in freemarker. How can I do this?</p>