diff --git a/apps/common/main/lib/component/ComboBox.js b/apps/common/main/lib/component/ComboBox.js
index 7a19180bb..78a7b0a22 100644
--- a/apps/common/main/lib/component/ComboBox.js
+++ b/apps/common/main/lib/component/ComboBox.js
@@ -644,7 +644,7 @@ define([
} else {
$(this.el).find('ul').html(_.template([
'<% _.each(items, function(item) { %>',
- '
<%= scope.getDisplayValue(item) %>',
+ '<%= scope.getDisplayValue(item) %>',
'<% }); %>'
].join(''))({
items: this.store.toJSON(),
diff --git a/apps/common/main/lib/component/Tab.js b/apps/common/main/lib/component/Tab.js
index 108672047..2ecf3a621 100644
--- a/apps/common/main/lib/component/Tab.js
+++ b/apps/common/main/lib/component/Tab.js
@@ -51,8 +51,8 @@ define([
this.active = false;
this.label = 'Tab';
this.cls = '';
- this.template = _.template(['',
- '<%- label %>',
+ this.template = _.template(['',
+ '<%- label %>',
''].join(''));
this.initialize.call(this, opts);
diff --git a/apps/spreadsheeteditor/main/app/controller/CellEditor.js b/apps/spreadsheeteditor/main/app/controller/CellEditor.js
index 4afe73ad0..836fa0bce 100644
--- a/apps/spreadsheeteditor/main/app/controller/CellEditor.js
+++ b/apps/spreadsheeteditor/main/app/controller/CellEditor.js
@@ -266,7 +266,7 @@ define([
(new SSE.Views.NameManagerDlg({
api: this.api,
handler: function(result) {
- Common.NotificationCenter.trigger('edit:complete', this.editor);
+ Common.NotificationCenter.trigger('edit:complete', me.editor);
},
locked: this.namedrange_locked,
sheets: items,
diff --git a/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js b/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js
index c8f244f0c..713e7ac69 100644
--- a/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js
+++ b/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js
@@ -1042,7 +1042,7 @@ define([
linkstr = props.asc_getHyperlinkUrl() + '
' + me.textCtrlClick + '';
}
} else {
- linkstr = props.asc_getTooltip() || (props.asc_getLocation());
+ linkstr = Common.Utils.String.htmlEncode(props.asc_getTooltip() || (props.asc_getLocation()));
linkstr += '
' + me.textCtrlClick + '';
}