Solved XF.alert doesn't handle HTML tags

  • Thread starter Thread starter stromb0li
  • Start date Start date
This topic has been solved
S

stromb0li

Guest
When using XF.alert to display an alert to the client, the text after the first html tag will be discarded.

In XF 2.2, I'd see moo cow (on two lines). In XF 2.3, I only see moo.

JavaScript:

Code:
const stringArray = ['moo', 'cow'];
XF.alert(stringArray.join('<br/>'));

This seems to work as a workaround:
JavaScript:

Code:
const stringArray = ['moo', 'cow'];
XF.alert(stringArray.join('\r\n'));

Continue reading...