(function() {
  $.fn.emoji = function() {
    return this.each(function() {
      return $(this).html($(this).html().replace(/([\ue001-\ue537])/g, $.fn.emoji.replacer));
    });
  };
  $.fn.emoji.replacer = function(str, p1) {
    return p1.charCodeAt(0).toString(16).toLowerCase().replace(/^([\da-f]+)$/i, '<img src="/images/kimoji/$1.png" alt="　" />');
  };
}).call(this);

