handle nested html