diff --git a/app/assets/javascripts/discourse/models/user.js.es6 b/app/assets/javascripts/discourse/models/user.js.es6 index fee74ec56b8..9beef8e18cd 100644 --- a/app/assets/javascripts/discourse/models/user.js.es6 +++ b/app/assets/javascripts/discourse/models/user.js.es6 @@ -748,7 +748,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")