jQuery.fn.stripTags = function() { 

        return this.replaceWith( this.html().toLowerCase().replace(/<\/?table[^>]*>|<\/?tr[^>]*>|<\/?td[^>]*>|<\/?thead[^>]*>|<\/?tbody[^>]*>/g, '') );

};

