fix nested <html> tag rendering