Parse indented tags and return a html string
Support doctype