diff --git a/js/emoji_util.js b/js/emoji_util.js index 2d0cb1b8..50702bc2 100644 --- a/js/emoji_util.js +++ b/js/emoji_util.js @@ -43,6 +43,9 @@ emoji.init_colons(); window.emoji_util.parse = function($el) { + if (!$el || !$el.length) { + return; + } $el.html(emoji.replace_unified($el.html())); };