diff --git a/app/assets/javascripts/discourse/models/user.js.es6 b/app/assets/javascripts/discourse/models/user.js.es6 index b9064d13f62..9f4a6bd0148 100644 --- a/app/assets/javascripts/discourse/models/user.js.es6 +++ b/app/assets/javascripts/discourse/models/user.js.es6 @@ -718,7 +718,9 @@ const User = RestModel.extend({ } }); - return _.uniq(titles).sort(); + return _.uniq(titles) + .sort() + .map(Ember.Handlebars.Utils.escapeExpression); }, @computed("user_option.text_size_seq", "user_option.text_size")