I have in my AngularJS-script a ui.bootstrap confirmdlg:
var modalDlgOptions = {
closeButtonText: "No",
actionButtonText: "Yes",
headerText: "my header text",
bodyText: "my body text"
};
confirmDlg.showModal({}, modalDlgOptions).then(function (result) {
// todo something
});
This works fine. But now I want to format the bodyText. I need new lines like this:
first line in my body text
second line in my body text
...
last line in my body text
When I use
bodyText: "first line in my body text<br>second line in my body text<br>...<br>last line in my body text";
or
bodyText: "first line in my body text<br>second line in my body text<br>...<br>last line in my body text";
I get
first line in my body text<br>second line in my body text<br>...<br>last line in my body text
in output of my dialog, but not new lines.
Is it possible to format the bodyText of the confirmDlg and how?
Thank you for your hints, Thomas
` or wrap the line inside of `` – Konkko Mar 26 '16 at 18:56