diff --git a/app/assets/javascripts/discourse/lib/utilities.js.es6 b/app/assets/javascripts/discourse/lib/utilities.js.es6 index 7025d1ed24e..b1b124518bc 100644 --- a/app/assets/javascripts/discourse/lib/utilities.js.es6 +++ b/app/assets/javascripts/discourse/lib/utilities.js.es6 @@ -111,7 +111,7 @@ export function selectedText() { const $div = $(div); // Find all emojis and replace with its title attribute. - $div.find('img.emoji').replaceWith(function() { return this.title }); + $div.find('img.emoji').replaceWith(function() { return this.title; }); $('.clicks', $div).remove(); const text = div.textContent || div.innerText || "";