In sweetalert, I prefer using html: instead of usual Sweetalert chaining for multiple fields. Main reason: sometimes the responsiveness on smaller screens goes haywire when chaining inputs.
Anyway, my question is in the html: option of sweetalert, I can't have the html string containing line breaks. I would simply do a php include to include a huge chunk of HTML
for example in sweetalert: the following is valid
html:'<h1>hello user</h1> WElcome ..blah blah blah',
but this is not valid:
html:'<h1>hello user</h1>
WElcome ..blah blah blah',
How do I accomplish the 2nd part above please?
I realise that this probably a dumb newbie JavaScript question but please bear with me
Thanks
Rajan
hello user
' + 'WElcome ..blah blah blah'` which you can then split on various lines after the `+` – Federico klez Culloca Jul 26 '19 at 14:30