diff --git a/js/emoji_util.js b/js/emoji_util.js index 23c50d32..2d0cb1b8 100644 --- a/js/emoji_util.js +++ b/js/emoji_util.js @@ -13,7 +13,7 @@ } this.inits.env = 1; this.include_title = true; - this.img_sets.apple.path = 'images/emoji/apple/'; + this.img_sets.apple.path = '/images/emoji/apple/'; this.replace_mode = 'img'; }; EmojiConvertor.prototype.replace_unified = function(str) { @@ -43,7 +43,7 @@ emoji.init_colons(); window.emoji_util.parse = function($el) { - $el.html(emoji.replace_unified($el.text())); + $el.html(emoji.replace_unified($el.html())); }; })(); diff --git a/test/index.html b/test/index.html index 1b079da5..bf1963d1 100644 --- a/test/index.html +++ b/test/index.html @@ -32,10 +32,12 @@