Skip to content

Node.js based forum software built for the modern web

taskbar text incase <script> is title

barisusakli3f9fa0137cd7
diff --git a/public/src/modules/taskbar.js b/public/src/modules/taskbar.js
index 605a85e62a..ae71f3325a 100644
--- a/public/src/modules/taskbar.js
+++ b/public/src/modules/taskbar.js
@@ -60,11 +60,12 @@ define('taskbar', function() {
var element = taskbar.tasklist.find('li[data-uuid="'+uuid+'"]');
if(element.length)
return;
+ var title = $('<div></div>').html(options.title || 'NodeBB Task').text();
var btnEl = $('<li />')
.html('<a href="#">' +
(options.icon ? '<img src="' + options.icon + '" />' : '') +
- '<span>' + (options.title || 'NodeBB Task') + '</span>' +
+ '<span>' + title + '</span>' +
'</a>')
.attr({
'data-module': module,