(function($) {
    $.htmlDecode = function(value) {
      return $('<div/>').html(value).text(); 
    }
})(jQuery);
