Improve notification documentation

Ref: https://gitlab.gnome.org/GNOME/gnome-shell/issues/294
This commit is contained in:
Ole Jørgen Brønner
2018-05-21 21:07:09 +02:00
parent 04f61567ba
commit fdaddbd1e0
2 changed files with 7 additions and 4 deletions

View File

@ -27,6 +27,7 @@ function _fixMarkup(text, allowMarkup) {
// Support <b>, <i>, and <u>, escape anything else
// so it displays as raw markup.
// Ref: https://developer.gnome.org/notification-spec/#markup
_text = _text.replace(/<(?!\/?[biu]>)/g, '&lt;');
try {