Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

typeahead: Use text() instead of html() in set_value.

evykassirer60018dfd12f6
diff --git a/web/third/bootstrap-typeahead/typeahead.js b/web/third/bootstrap-typeahead/typeahead.js
index 5b30d189d07..a9ca3497610 100644
--- a/web/third/bootstrap-typeahead/typeahead.js
+++ b/web/third/bootstrap-typeahead/typeahead.js
@@ -207,7 +207,7 @@ Typeahead.prototype = {
set_value() {
const val = this.$menu.find(".active").data("typeahead-value");
if (this.$element.is("[contenteditable]")) {
- this.$element.html(val);
+ this.$element.text(val);
} else {
this.$element.val(val);
}