extra <html> tags are removed