How can I replace new lines ("\r\n") with "<BR>" except any new lines that between [textarea] and [/textarea]
for exmaple replace:
That
is
new
code
[textarea]
Any
code
here
[/textarea]
Replace it with
That <br>
is <br>
new <br>
code <br>
[textarea]
Any
code
here
[/textarea]