html: create a html_tree_builder helper class