diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 039685a1c..06dd250bb 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -27,9 +27,12 @@ const State = { }; function _cleanMarkup(text) { + // Support &, ", ', < and >, escape all other + // occurrences of '&'. + let _text = text.replace(/&(?!amp;|quot;|apos;|lt;|gt;)/g, "&"); // Support , , and , escape anything else // so it displays as raw markup. - return text.replace(/<(\/?[^biu]>|[^>\/][^>])/g, "<$1"); + return _text.replace(/<(\/?[^biu]>|[^>\/][^>])/g, "<$1"); } // Notification: @@ -295,7 +298,6 @@ Notification.prototype = { popIn: function() { if (this.actor.row_count <= 1) return false; - Tweener.addTween(this._bannerLabel, { opacity: 255, time: ANIMATION_TIME,