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:
It just displays it as pure text: