Convert line break in textarea field

Hi,

How Convert breakline in a textarea field to breakline in my email body text

Thanks

Please check:

Thanks @Teodor after add formatters.php how use function in wappler?

@kryo91 this may help you. See the section “App Connect Formatters UI Definition”

<script> dmx.Formatters('string', { nl2br: function(string) { return string.replace(/\n/g, '%0D%0A'); } }); </script>
<dmx-value id="var1" dmx-bind:value="scMail.data.corps.nl2br()"></dmx-value>