Hi, I'm trying to create a email composer and I'm having trouble with the formatting.
The textinput ignores any new line.
The rich text editor instead uses <p>
instead of <br>
:
Is it possible to have simple <br>
for new lines?
In the meantime seems working with some replace, but I'm not sure it's the best approach.
text.replace('<p>', '').replaceAll('<br>', '').replaceAll('<p>', '<br>').replaceAll('</p>', '')
Thanks