- Affected version
- 2.3
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.
This seems to work as a workaround:
In XF 2.2, I'd see moo cow (on two lines). In XF 2.3, I only see moo.
JavaScript:
const stringArray = ['moo', 'cow'];
XF.alert(stringArray.join('<br/>'));
This seems to work as a workaround:
JavaScript:
const stringArray = ['moo', 'cow'];
XF.alert(stringArray.join('\r\n'));
Last edited: