jQuery.fn.outerHtml = function(s) { return (s) ? this.before(s).remove() : jQuery("

").append(this.eq(0).clone()).html(); }