Fragments group children without a wrapper node. Element JSON: {"type": string, "children": [...]}; type "<>" is a fragment. Print the rendered HTML where fragments contribute only their children.
Input: one element JSON. Output: HTML string.
Your program reads from stdin and prints to stdout.
Example 1
Input: {"type":"div","children":[{"type":"<>","children":[{"type":"span","children":["a"]},{"type":"span","children":["b"]}]}]}
Output: <div><span>a</span><span>b</span></div>
Hints
Fragments group children without a wrapper node. Element JSON: {"type": string, "children": [...]}; type "<>" is a fragment. Print the rendered HTML where fragments contribute only their children.
Input: one element JSON. Output: HTML string.
Your program reads from stdin and prints to stdout.
Example 1
Input: {"type":"div","children":[{"type":"<>","children":[{"type":"span","children":["a"]},{"type":"span","children":["b"]}]}]}
Output: <div><span>a</span><span>b</span></div>
Hints