Corrected bug if <html> and </html> are on same line