HTML Serializer

Convert a JavaScript object representing an HTML tree structure into an HTML string with proper indentation.

Examples
Input: {"tag":"div"}
Output: "<div></div>"
Hints

HTML Serializer

Implement a function to serialize an object/tree into an HTML string with indentation.