(function($) {
    jQuery.fn.cutText = function(options) {
        this.each(function() {
            var textValue = $(this).text();
			textValue = textValue.replace("&nbsp;","");
            if (textValue.length > options) {
                $(this).attr("title", textValue);
                $(this).text(textValue.replace(textValue.slice(options), "..."));
            }
        });
    }
})(jQuery);
