My database of messages contains text, including on 2 or more lines, coming from a form earlier.
In mySQL they look like this, 2 lines for example.
A query returns the text with \r\n as expected in the console
So I try to replace \r\n with a <BR>
{{body}}<BR> <--- This returns the correct body, but on 1 line
{{body.replace('\\r\\n', '<BR>')}} <--- this tries to replace \r\n by <BR>
But here is the display. First line shows text, but no return. 2nd line the replace() function isn’t applied.
Is there something I’m missing to make this apply as expected?
Thank you for the help
Community Page
Last updated:
Last updated: