Skip to content

Instantly share code, notes, and snippets.

@eloyz
Created March 6, 2014 16:16
Show Gist options
  • Save eloyz/9393217 to your computer and use it in GitHub Desktop.
Save eloyz/9393217 to your computer and use it in GitHub Desktop.
var serializer = new XMLSerializer(),
html = serializer.serializeToString(document);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment