Convert a JavaScript object representing an HTML tree structure into an HTML string with proper indentation.
Implement a function to serialize an object/tree into an HTML string with indentation.