domFormat is a simple javascript library to get DOM nodes as formatted/pretty strings.