Notification Messages HTML support

Last modified by Manuel Leduc on 2026/05/18 12:17

The notifications now only support HTML in their text message when it is explicitly allowed. To do so, an optional textHtml boolean parameters (default value: false) is available.

Example:

new XWiki.widgets.Notification('This is <strong>bold</strong>','done', { textHtml: true});
Warning

When enabling HTML, there is a risk on introducing XSS, use at your own risk.

Get Connected