1

So I want to display an alert that has line breaks in it. All methods I tried, which include \n, shift + enter and <br> have not worked. The method provided should work on both desktop and mobile.

So if I do something like this:

enter image description here

It just displays it as pure text:

enter image description here

1 Answer 1

1

The way is to store the text you want to display in a text-action where line breaks are easily storable.

Image on how to do this

Shows:

enter image description here

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .