Is there any way to replace the new line character on free marker? I am trying this:

<#assign str = str?replace("(\r\n)+", "</p><p>")>

which worked in Java, but not in freemarker. How can I do this?

Edit
Report