Skip to content

Instantly share code, notes, and snippets.

@miyagawa
Created January 27, 2009 21:58
Show Gist options
  • Save miyagawa/53590 to your computer and use it in GitHub Desktop.
Save miyagawa/53590 to your computer and use it in GitHub Desktop.
jQuery.fn.outerhtml = function() {
return $("<div/>").append(this).html();
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment